浏览代码

update 乐保推送修改

周箭河 4 年之前
父节点
当前提交
3d47482363
共有 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 startTime = DateUtil.trunc(new Date());
-        Date endTime = DateUtil.addDays(DateUtil.getLastTimeWithDay(startTime), +6);
+        Date endTime = DateUtil.addDays(DateUtil.getLastTimeWithDay(new Date()), +7);
+        Date startTime = DateUtil.trunc(endTime);
         List<StudentInstrument> studentInstruments = studentInstrumentDao.getListByEndTime(startTime, endTime);
         if (studentInstruments.size() <= 0) {
             return false;