| | |
| | | } |
| | | |
| | | @Override |
| | | public Page<Plan> getPage(Page<Plan> page, Long hostId, String deptId, Long userId, String condition) { |
| | | return page.setRecords(baseMapper.listByPage(page, hostId, deptId, userId, condition)); |
| | | public Page<Plan> getPage(Page<Plan> page, Long hostId, String deptId, Long userId, Long director,String condition) { |
| | | return page.setRecords(baseMapper.listByPage(page, hostId, deptId, userId,director, condition)); |
| | | } |
| | | |
| | | private String getNextUuid(Long hostId) { |
| | | Plan plan = this.baseMapper.selectPlanByNewestUuid(hostId); |
| | | if (plan == null) { |
| | | return "0001"; |
| | | return "00001"; |
| | | } |
| | | return zerofill(String.valueOf(Integer.parseInt(plan.getUuid()) + 1), 4); |
| | | return zerofill(String.valueOf(Integer.parseInt(plan.getUuid()) + 1), 5); |
| | | } |
| | | |
| | | public static String zerofill(String msg, Integer count){ |