Commit 42a59f63a0a2e73ab6088ad90b8b41a91c001a53
1 parent
4a162f66
1.t+3变更
Showing
2 changed files
with
3 additions
and
3 deletions
src/main/java/com/bsth/controller/realcontrol/ScheduleRealInfoController.java
| @@ -629,7 +629,7 @@ public class ScheduleRealInfoController extends BaseController<ScheduleRealInfo, | @@ -629,7 +629,7 @@ public class ScheduleRealInfoController extends BaseController<ScheduleRealInfo, | ||
| 629 | List<String> rs = new ArrayList<>(); | 629 | List<String> rs = new ArrayList<>(); |
| 630 | Set<Role> roles = SecurityUtils.getCurrentUser().getRoles(); | 630 | Set<Role> roles = SecurityUtils.getCurrentUser().getRoles(); |
| 631 | SystemParam param = BasicData.getSystemParam().get(Constants.SPECIAL_ROLES); | 631 | SystemParam param = BasicData.getSystemParam().get(Constants.SPECIAL_ROLES); |
| 632 | - int days = 3; | 632 | + int days = 4; |
| 633 | if (param != null && param.getValue() != null) { | 633 | if (param != null && param.getValue() != null) { |
| 634 | for (Role role : roles) { | 634 | for (Role role : roles) { |
| 635 | if (param.getValue().contains(String.format(",%s,", role.getCodeName()))) { | 635 | if (param.getValue().contains(String.format(",%s,", role.getCodeName()))) { |
src/main/java/com/bsth/service/realcontrol/impl/ScheduleRealInfoServiceImpl.java
| @@ -626,7 +626,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -626,7 +626,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 626 | DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd"); | 626 | DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd"); |
| 627 | long today = formatter.parseMillis(new DateTime().toString("yyyy-MM-dd")), scheduleDate = formatter.parseMillis(t.getScheduleDateStr()); | 627 | long today = formatter.parseMillis(new DateTime().toString("yyyy-MM-dd")), scheduleDate = formatter.parseMillis(t.getScheduleDateStr()); |
| 628 | String clZbh = t.getClZbh(), lpName = t.getLpName(); | 628 | String clZbh = t.getClZbh(), lpName = t.getLpName(); |
| 629 | - if (today < scheduleDate || today - scheduleDate > 172800000) { | 629 | + if (today < scheduleDate || today - scheduleDate > 259200000) { |
| 630 | rs.put("status", ResponseCode.ERROR); | 630 | rs.put("status", ResponseCode.ERROR); |
| 631 | rs.put("msg", "无效的调度日期"); | 631 | rs.put("msg", "无效的调度日期"); |
| 632 | return rs; | 632 | return rs; |
| @@ -4679,7 +4679,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | @@ -4679,7 +4679,7 @@ public class ScheduleRealInfoServiceImpl extends BaseServiceImpl<ScheduleRealInf | ||
| 4679 | // 检查调度日期 | 4679 | // 检查调度日期 |
| 4680 | DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd"); | 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(sch.getScheduleDateStr()); |
| 4682 | - if (today < scheduleDate || today - scheduleDate > 172800000) { | 4682 | + if (today < scheduleDate || today - scheduleDate > 259200000) { |
| 4683 | rs.put("status", ResponseCode.ERROR); | 4683 | rs.put("status", ResponseCode.ERROR); |
| 4684 | rs.put("msg", "无效的调度日期"); | 4684 | rs.put("msg", "无效的调度日期"); |
| 4685 | return rs; | 4685 | return rs; |