Commit fc4e5174c9bbbcd830c7cf5bca2d9a044be403de

Authored by 王通
1 parent 8e63098a

1.历史路单修改时校验

src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
... ... @@ -4678,7 +4678,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf
4678 4678 ScheduleRealInfo oldSch = super.findById(sch.getId());
4679 4679 // 检查调度日期
4680 4680 DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd");
4681   - long today = formatter.parseMillis(new DateTime().toString("yyyy-MM-dd")), scheduleDate = formatter.parseMillis(sch.getScheduleDateStr());
  4681 + long today = formatter.parseMillis(new DateTime().toString("yyyy-MM-dd")), scheduleDate = formatter.parseMillis(oldSch.getScheduleDateStr());
4682 4682 if (today < scheduleDate || today - scheduleDate > 259200000) {
4683 4683 rs.put("status", ResponseCode.ERROR);
4684 4684 rs.put("msg", "无效的调度日期");
... ...