Commit 11f40560 authored by liuyuanjun's avatar liuyuanjun

修改标签查不到的bug'

parent cc1ebdda
......@@ -1340,7 +1340,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
* @param type
* @return
*/
@Select("select count(0) from b_user_lesson_look where user_id = #{userId} and lesson_id = #{lessonId} and type = #{type}")
@Select("select count(0) from b_user_lesson_look where user_id = #{userId} and lesson_id = #{lessonId}")
int getCountByUserAndLesson(@Param("userId") String userId, @Param("lessonId") String lessonId, @Param("type") String type);
/**
......
......@@ -168,6 +168,8 @@ public class BLesson extends IdEntity<BLesson> {
@Transient
private String trainType;
@ApiModelProperty(value = "平台推荐自带标签")
private String pushLabel;
//-------------------------------------
......@@ -292,8 +294,6 @@ public class BLesson extends IdEntity<BLesson> {
@ApiModelProperty(value = "数据来源企业")
private String fromCorp;
@ApiModelProperty(value = "平台推荐自带标签")
private String pushLable;
public void initModel(){
......
......@@ -232,8 +232,8 @@ public class BLessonServiceImpl implements BLessonService {
bLessonRepository.hotNumberReCount2(bLesson.getBusinessId());
}
//添加 推送至企业信息 标签信息
if (StringUtils.isNotEmpty(bLesson.getPushLable())) {
String[] labels = bLesson.getPushLable().split(",");
if (StringUtils.isNotEmpty(bLesson.getPushLabel())) {
String[] labels = bLesson.getPushLabel().split(",");
List<QueryLabelResDTO> dto = bLabelRepository.queryPushLabel(labels);
bLesson.setLabelList(dto);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment