|
|
@@ -556,14 +556,20 @@ public class FsUserCourseServiceImpl implements IFsUserCourseService
|
|
|
Long lxDay = fsCourseWatchLogMapper.selectByWatchlxDay(recordVO.getUserId(),recordVO.getProjectId());
|
|
|
System.out.println("进入了连续观看天数:"+lxDay+"天");
|
|
|
recordVO.setWatchLxCount(lxDay);
|
|
|
-
|
|
|
+ //中康小程序统计发送红包状态问题(未答题、未领取、发送成功->0 未领取 1 发送成功 2.没有就是未答题
|
|
|
// 领取状态
|
|
|
- Long count = fsCourseAnswerLogsMapper.selectRedStatus(recordVO.getUserId(), recordVO.getVideoId(), (Long) params.get("periodId"));
|
|
|
+ Integer status = fsCourseAnswerLogsMapper.selectRedStatus2(recordVO.getUserId(), recordVO.getVideoId(), (Long) params.get("periodId"));
|
|
|
+ if (status==null){
|
|
|
+ recordVO.setRedStatus(2);
|
|
|
+ }else{
|
|
|
+ recordVO.setRedStatus(status);
|
|
|
+ }
|
|
|
+/*
|
|
|
if (Objects.nonNull(count) && count > 0) {
|
|
|
recordVO.setRedStatus(1);
|
|
|
} else {
|
|
|
recordVO.setRedStatus(0);
|
|
|
- }
|
|
|
+ }*/
|
|
|
});
|
|
|
return list;
|
|
|
}
|