|
@@ -40,6 +40,15 @@ public class ExamBeforeServiceImpl extends ServiceImpl<ExamBeforeMapper, ExamBef
|
|
|
|
|
|
@Override
|
|
|
public List<ExamBeforeVo> queryList(ExamBeforeQueryBo bo) {
|
|
|
+ List<ExamBeforeVo> examBeforeVos = baseMapper.queryBefore(bo);
|
|
|
+ for (ExamBeforeVo examBeforeVo : examBeforeVos) {
|
|
|
+ if (examBeforeVo.getBeforeEndTime() < System.currentTimeMillis()/1000){
|
|
|
+ ExamBefore update = new ExamBefore();
|
|
|
+ update.setBeforeId(examBeforeVo.getBeforeId());
|
|
|
+ update.setStatus(2);
|
|
|
+ this.updateById(update);
|
|
|
+ }
|
|
|
+ }
|
|
|
return baseMapper.queryBefore(bo);
|
|
|
}
|
|
|
|