Browse Source

资料审核

change 3 years ago
parent
commit
d93317a601

+ 10 - 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,15 @@ 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);
+                this.updateById(update);
+            }
+        }
 
         return baseMapper.queryExam(bo);
     }