|
@@ -658,6 +658,10 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
}
|
|
|
Calendar c5 = Calendar.getInstance();
|
|
|
if (dayStudyVo.getDate() <= c5.get(Calendar.DAY_OF_MONTH) && clCalendarStudyVo.getMonth() == (c5.get(Calendar.MONTH) + 1) && clCalendarStudyVo.getYear() == (c5.get(Calendar.YEAR))) {
|
|
|
+ if(Validator.isNotEmpty(dayStudyVo.getPerform())&&dayStudyVo.getPerform().equals(0)){
|
|
|
+ //过期且没完成
|
|
|
+ dayStudyVo.setPerform(2);
|
|
|
+ }
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -675,13 +679,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // dayStudyVo.setPerform(0);
|
|
|
- if (dayStudyVo.getDate() > c5.get(Calendar.DAY_OF_MONTH) && clCalendarStudyVo.getMonth() == (c5.get(Calendar.MONTH) + 1) && clCalendarStudyVo.getYear() == (c5.get(Calendar.YEAR))) {
|
|
|
- if(Validator.isNotEmpty(dayStudyVo.getPerform())&&dayStudyVo.getPerform().equals(0)){
|
|
|
- //过期且没完成
|
|
|
- dayStudyVo.setPerform(2);
|
|
|
- }
|
|
|
- }
|
|
|
+ dayStudyVo.setPerform(0);
|
|
|
List<DaySectionVo> daySectionList = new ArrayList<>();
|
|
|
if (!com.baomidou.mybatisplus.core.toolkit.CollectionUtils.isEmpty(dayStudyVo.getDaySectionList())) {
|
|
|
daySectionList = dayStudyVo.getDaySectionList();
|
|
@@ -694,13 +692,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
daySectionVo.setStudyGoodsKnob(Convert.toLong(Sec));
|
|
|
}
|
|
|
|
|
|
- // daySectionVo.setGoodsPerform(0);
|
|
|
- if (dayStudyVo.getDate() > c5.get(Calendar.DAY_OF_MONTH) && clCalendarStudyVo.getMonth() == (c5.get(Calendar.MONTH) + 1) && clCalendarStudyVo.getYear() == (c5.get(Calendar.YEAR))) {
|
|
|
- if(Validator.isNotEmpty(daySectionVo.getGoodsPerform())&&daySectionVo.getGoodsPerform().equals(0)){
|
|
|
- //过期且没完成
|
|
|
- daySectionVo.setGoodsPerform(2);
|
|
|
- }
|
|
|
- }
|
|
|
+ daySectionVo.setGoodsPerform(0);
|
|
|
daySectionList.add(daySectionVo);
|
|
|
dayStudyVo.setDaySectionList(daySectionList);
|
|
|
allNum -= Sec;
|