he2802 3 lat temu
rodzic
commit
2946514149

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/service/impl/UserProfileServiceImpl.java

@@ -249,6 +249,7 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
                 InformUserAddBo informUserAddBo = new InformUserAddBo();
                 informUserAddBo.setUserId(userProfileVo.getUserId());
                 informUserAddBo.setSendStatus(1);
+                informUserAddBo.setSendTime(DateUtils.getNowTime());
                 informUserAddBo.setCreateTime(DateUtils.getNowTime());
                 informUserAddBo.setUpdateTime(DateUtils.getNowTime());
                 informUserAddBo.setRemindId(3L);
@@ -285,6 +286,7 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
                 informUserAddBo.setUserId(userProfileVo.getUserId());
                 informUserAddBo.setSendStatus(1);
                 informUserAddBo.setCreateTime(DateUtils.getNowTime());
+                informUserAddBo.setSendTime(DateUtils.getNowTime());
                 informUserAddBo.setUpdateTime(DateUtils.getNowTime());
                 informUserAddBo.setRemindId(4L);
                 informUserAddBo.setSystemStatus(1);

+ 11 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/exam/service/impl/ExamApplyServiceImpl.java

@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
 import com.zhongzheng.common.utils.DateUtils;
 import com.zhongzheng.common.utils.ServletUtils;
 import com.zhongzheng.modules.exam.bo.*;
+import com.zhongzheng.modules.exam.domain.ExamBefore;
 import com.zhongzheng.modules.exam.vo.*;
 import com.zhongzheng.modules.user.vo.CalendarStudyVo;
 import io.swagger.annotations.ApiModelProperty;
@@ -56,6 +57,16 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
 
     @Override
     public List<ExamApplyVo> queryList(ExamApplyQueryBo bo) {
+        List<ExamApplyVo> examApplyVos = baseMapper.queryExam(bo);
+        for (ExamApplyVo examApplyVo : examApplyVos) {
+            if (examApplyVo.getApplyEndTime() < System.currentTimeMillis()/1000){
+                ExamApply update = new ExamApply();
+                update.setApplyId(examApplyVo.getApplyId());
+                update.setStatus(2);
+                update.setUpdateTime(DateUtils.getNowTime());
+                this.updateById(update);
+            }
+        }
 
         return baseMapper.queryExam(bo);
     }

+ 1 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/exam/service/impl/ExamBeforeServiceImpl.java

@@ -46,6 +46,7 @@ public class ExamBeforeServiceImpl extends ServiceImpl<ExamBeforeMapper, ExamBef
                 ExamBefore update = new ExamBefore();
                 update.setBeforeId(examBeforeVo.getBeforeId());
                 update.setStatus(2);
+                update.setUpdateTime(DateUtils.getNowTime());
                 this.updateById(update);
             }
         }

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/inform/service/impl/InformUserServiceImpl.java

@@ -81,7 +81,7 @@ public class InformUserServiceImpl extends ServiceImpl<InformUserMapper, InformU
         lqw.eq(bo.getSendTime() != null, InformUser::getSendTime, bo.getSendTime());
         lqw.eq(bo.getSendStatus() != null, InformUser::getSendStatus, bo.getSendStatus());
         lqw.eq(bo.getReceiptStatus() != null, InformUser::getReceiptStatus, bo.getReceiptStatus());
-        lqw.in(bo.getSystemStatus() != null, InformUser::getSystemStatus, status);
+        lqw.in( InformUser::getSystemStatus, status);
         List<InformUserVo> informUserVos = entity2Vo(this.list(lqw));
         for (InformUserVo informUserVo : informUserVos) {
             if (informUserVo.getSystemStatus() == 2) {

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/schedule/service/impl/ScheduleServiceImpl.java

@@ -128,6 +128,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
                     informUserAddBo.setSendStatus(1);
                     informUserAddBo.setCreateTime(DateUtils.getNowTime());
                     informUserAddBo.setUpdateTime(DateUtils.getNowTime());
+                    informUserAddBo.setSendTime(DateUtils.getNowTime());
                     informUserAddBo.setRemindId(1L);
                     informUserAddBo.setSystemStatus(1);
                     informUserAddBo.setRemind("商品开通提醒");
@@ -164,6 +165,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
                     informUserAddBo.setSendStatus(1);
                     informUserAddBo.setCreateTime(DateUtils.getNowTime());
                     informUserAddBo.setUpdateTime(DateUtils.getNowTime());
+                    informUserAddBo.setSendTime(DateUtils.getNowTime());
                     informUserAddBo.setRemindId(1L);
                     informUserAddBo.setSystemStatus(3);
                     informUserAddBo.setRemind("商品开通提醒");