|
@@ -42,7 +42,14 @@ public class ExamBeforeServiceImpl extends ServiceImpl<ExamBeforeMapper, ExamBef
|
|
|
public List<ExamBeforeVo> queryList(ExamBeforeQueryBo bo) {
|
|
|
List<ExamBeforeVo> examBeforeVos = baseMapper.queryBefore(bo);
|
|
|
for (ExamBeforeVo examBeforeVo : examBeforeVos) {
|
|
|
- if (examBeforeVo.getBeforeEndTime() < System.currentTimeMillis()/1000){
|
|
|
+ Calendar calendar = Calendar.getInstance();
|
|
|
+ calendar.setTimeZone(TimeZone.getTimeZone("GMT+8:00"));
|
|
|
+ calendar.setTimeInMillis(System.currentTimeMillis());
|
|
|
+ calendar.set(Calendar.HOUR_OF_DAY, 23);
|
|
|
+ calendar.set(Calendar.MINUTE, 59);
|
|
|
+ calendar.set(Calendar.SECOND, 59);
|
|
|
+ calendar.set(Calendar.MILLISECOND, 999);
|
|
|
+ if (examBeforeVo.getBeforeEndTime() < calendar.getTimeInMillis()){
|
|
|
ExamBefore update = new ExamBefore();
|
|
|
update.setBeforeId(examBeforeVo.getBeforeId());
|
|
|
update.setStatus(2);
|