Commit 0a802620 authored by liuyuanjun's avatar liuyuanjun

isNew的修改

parent 421c9425
...@@ -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--"+ flag + "--" + b.getBusinessId() + "--" + userId +"---------------"); log.info("-----------addNew------课程查看状态2--"+ "--" + b.getBusinessId() + "--" + userId + flag +"---------------");
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程 //step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
if (flag <= 0) { if (flag <= 0) {
//获取课程的 指派时间 //获取课程的 指派时间
...@@ -511,10 +511,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService { ...@@ -511,10 +511,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
b.setIsNew("1"); b.setIsNew("1");
log.info("-----------addNew---------当前课程已设置new-------"+b); log.info("-----------addNew---------当前课程已设置new-------"+b);
} }
} else {
b.setIsNew("");
} }
b.setIsNew("");
} }
return result; return result;
} }
......
...@@ -1989,7 +1989,7 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -1989,7 +1989,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--"+ flag + "--" + b.getBusinessId() + "--" + userId +"---------------"); log.info("-----------addNew------课程查看状态1--" + "--" + b.getBusinessId() + "--" + userId + flag + "---------------");
//step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程 //step 2 存在则返回,不存在则判断时间 满足条件 setIsNew() flag <= 0 说明此用户未点击过该课程
if (flag <= 0) { if (flag <= 0) {
//获取课程的 发布时间 //获取课程的 发布时间
...@@ -2006,8 +2006,6 @@ public class BLessonServiceImpl implements BLessonService { ...@@ -2006,8 +2006,6 @@ public class BLessonServiceImpl implements BLessonService {
b.setIsNew("1"); b.setIsNew("1");
log.info("-----------addNew---------当前课程已设置new-------"+b); log.info("-----------addNew---------当前课程已设置new-------"+b);
} }
} else {
b.setIsNew("");
} }
} }
return result; return result;
......
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