ソースを参照

update 乐保推送提醒修改

周箭河 4 年 前
コミット
abcec67339

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentInstrumentServiceImpl.java

@@ -312,8 +312,8 @@ public class StudentInstrumentServiceImpl extends BaseServiceImpl<Long, StudentI
 
     @Override
     public Boolean pushNotice() {
-        Date endTime = DateUtil.addDays(DateUtil.getLastTimeWithDay(new Date()), -6);
-        Date startTime = DateUtil.trunc(endTime);
+        Date startTime = DateUtil.trunc(new Date());
+        Date endTime = DateUtil.addDays(DateUtil.getLastTimeWithDay(startTime), +6);
         List<StudentInstrument> studentInstruments = studentInstrumentDao.getListByEndTime(startTime, endTime);
         if (studentInstruments.size() <= 0) {
             return false;