瀏覽代碼

update 乐保推送提醒修改

周箭河 4 年之前
父節點
當前提交
abcec67339
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentInstrumentServiceImpl.java

+ 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;