|
@@ -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);
|
|
|
}
|