|
|
|
@ -821,7 +821,7 @@ public class ImsDutyRecServiceImpl extends ServiceImpl<ImsDutyRecMapper, ImsDuty
|
|
|
|
|
}}); |
|
|
|
|
String dutyTime = DateUtil.format(mainEntityById.getDutyDate(), DateUtil.PATTERN_DATE) + " " +DateUtil.format(classEntity.getStartTime(), DateUtil.PATTERN_TIME); |
|
|
|
|
Date dutyDate = DateUtil.parse(dutyTime, PATTERN_DATETIME); |
|
|
|
|
if (dutyDate.getTime() > new Date().getTime()) { |
|
|
|
|
if (dutyDate.getTime() > System.currentTimeMillis()) { |
|
|
|
|
return R.fail("指定的值班开始时间不能晚于当前时间"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|