Commit b759a67e3fc96ab293329f1f5174d2c8ed85f2e6
1 parent
6f8d8515
材料等级增加来源
Showing
6 changed files
with
18 additions
and
6 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/inspectionplan/vo/InspectionPlanCommitRespVO.java
| ... | ... | @@ -17,6 +17,13 @@ public class InspectionPlanCommitRespVO { |
| 17 | 17 | @ExcelProperty("计划编码") |
| 18 | 18 | private String planNo; |
| 19 | 19 | |
| 20 | + /** | |
| 21 | + * 排序号:第n次计划提交 | |
| 22 | + */ | |
| 23 | + @Schema(description = "排序号") | |
| 24 | + @ExcelProperty("排序号") | |
| 25 | + private Integer sortNum; | |
| 26 | + | |
| 20 | 27 | @Schema(description = "计划名称") |
| 21 | 28 | @ExcelProperty("计划名称") |
| 22 | 29 | private String planName; | ... | ... |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/maintainplan/MaintainPlanCommitController.java
| ... | ... | @@ -83,8 +83,9 @@ public class MaintainPlanCommitController { |
| 83 | 83 | @Operation(summary = "获取养护计划-共同处理人明细") |
| 84 | 84 | @Parameter(name = "plan_no", description = "计划编号", required = true, example = "1024") |
| 85 | 85 | @PreAuthorize("@ss.hasPermission('garden:maintain-plan-commit:query')") |
| 86 | - public CommonResult<List<MaintainPlanCommitDetailRespVO>> getMaintainPlanCommitDetailByPlanNo(@RequestParam("plan_no") String planNo) { | |
| 87 | - return success( maintainPlanCommitService.getMaintainPlanCommitDetailByPlanNo(planNo)); | |
| 86 | + public CommonResult<List<MaintainPlanCommitDetailRespVO>> getMaintainPlanCommitDetailByPlanNo(@RequestParam("plan_no") String planNo, | |
| 87 | + @RequestParam(value="sort_num", required = false) String sortNum) { | |
| 88 | + return success( maintainPlanCommitService.getMaintainPlanCommitDetailByPlanNo(planNo, sortNum)); | |
| 88 | 89 | } |
| 89 | 90 | |
| 90 | 91 | @GetMapping("/page") | ... | ... |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanCommitService.java
| ... | ... | @@ -70,7 +70,7 @@ public interface MaintainPlanCommitService { |
| 70 | 70 | * @param planNo 计划编号 |
| 71 | 71 | * @return 养护计划明细列表 |
| 72 | 72 | */ |
| 73 | - List<MaintainPlanCommitDetailRespVO> getMaintainPlanCommitDetailByPlanNo(String planNo); | |
| 73 | + List<MaintainPlanCommitDetailRespVO> getMaintainPlanCommitDetailByPlanNo(String planNo, String sortNum); | |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | 76 | * 获得养护计划明细分页 | ... | ... |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/maintainplan/MaintainPlanCommitServiceImpl.java
| ... | ... | @@ -219,11 +219,13 @@ public class MaintainPlanCommitServiceImpl implements MaintainPlanCommitService |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | @Override |
| 222 | - public List<MaintainPlanCommitDetailRespVO> getMaintainPlanCommitDetailByPlanNo(String planNo) { | |
| 222 | + public List<MaintainPlanCommitDetailRespVO> getMaintainPlanCommitDetailByPlanNo(String planNo, String sortNum) { | |
| 223 | 223 | List<MaintainPlanCommitDetailRespVO> respList = new ArrayList<>(); |
| 224 | 224 | /*1.查询处理明细*/ |
| 225 | 225 | List<MaintainPlanCommitDO> list = maintainPlanCommitMapper.selectList(new QueryWrapper<MaintainPlanCommitDO>().lambda() |
| 226 | - .eq(MaintainPlanCommitDO::getPlanNo, planNo).eq(MaintainPlanCommitDO::getDeleted, 0)); | |
| 226 | + .eq(MaintainPlanCommitDO::getPlanNo, planNo) | |
| 227 | + .eq(null != sortNum, MaintainPlanCommitDO::getSortNum, sortNum) | |
| 228 | + .eq(MaintainPlanCommitDO::getDeleted, 0)); | |
| 227 | 229 | if (CollectionUtils.isEmpty(list)) { |
| 228 | 230 | return Collections.emptyList(); |
| 229 | 231 | } | ... | ... |
urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanCommitMapper.xml
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanCommitMapper.xml