Commit aba4c612 authored by liuyuanjun's avatar liuyuanjun

回退label修改

parent 0a802620
...@@ -494,7 +494,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService { ...@@ -494,7 +494,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
for (BLessonPerson b : result) { for (BLessonPerson b : result) {
//step 1 查询look表中是否有对应任何课程的点击记录 //step 1 查询look表中是否有对应任何课程的点击记录
int flag = bLessonRepository.getCountByUserAndLesson(userId, b.getBusinessId(), "0"); int flag = bLessonRepository.getCountByUserAndLesson(userId, b.getBusinessId(), "0");
log.info("-----------addNew------课程查看状态2--"+ "--" + b.getBusinessId() + "--" + userId + flag +"---------------"); log.info("-----------addNew------课程查看状态2--" + b.getBusinessId() + "--" + userId + "--" + flag +"---------------");
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程 //step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
if (flag <= 0) { if (flag <= 0) {
//获取课程的 指派时间 //获取课程的 指派时间
......
...@@ -231,12 +231,6 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -231,12 +231,6 @@ public class BLessonServiceImpl implements BLessonService {
if(LessonSycnEnum.OPEN.getCode().equals(flag)) if(LessonSycnEnum.OPEN.getCode().equals(flag))
bLessonRepository.hotNumberReCount2(bLesson.getBusinessId()); bLessonRepository.hotNumberReCount2(bLesson.getBusinessId());
} }
//添加 推送至企业信息 标签信息
if (StringUtils.isNotEmpty(bLesson.getPushLable())) {
String[] labels = bLesson.getPushLable().split(",");
List<QueryLabelResDTO> dto = bLabelRepository.queryPushLabel(labels);
bLesson.setLabelList(dto);
}
return bLesson; return bLesson;
} }
...@@ -1989,7 +1983,7 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -1989,7 +1983,7 @@ public class BLessonServiceImpl implements BLessonService {
for (BLesson b : result) { for (BLesson b : result) {
//step 1 查询look表中是否有对应任何课程的点击记录 //step 1 查询look表中是否有对应任何课程的点击记录
int flag = bLessonRepository.getCountByUserAndLesson(userId, b.getBusinessId(), "0"); int flag = bLessonRepository.getCountByUserAndLesson(userId, b.getBusinessId(), "0");
log.info("-----------addNew------课程查看状态1--" + "--" + b.getBusinessId() + "--" + userId + flag + "---------------"); log.info("-----------addNew------课程查看状态1--" + b.getBusinessId() + "--" + userId + "--" + flag + "---------------");
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程 //step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
if (flag <= 0) { if (flag <= 0) {
//获取课程的 发布时间 //获取课程的 发布时间
......
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