Commit 4c363857cfe8f2e0ed0a2fc08f6f3d2c7395a136
1 parent
b8f09c33
机械修改
Showing
3 changed files
with
2 additions
and
12 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/mechanicalcost/vo/MechanicalCostSaveReqVO.java
| @@ -75,7 +75,7 @@ public class MechanicalCostSaveReqVO { | @@ -75,7 +75,7 @@ public class MechanicalCostSaveReqVO { | ||
| 75 | private String companyId; | 75 | private String companyId; |
| 76 | 76 | ||
| 77 | @Schema(description = "部门id", example = "13645") | 77 | @Schema(description = "部门id", example = "13645") |
| 78 | - private Long deptId; | 78 | + private List<Long> deptId; |
| 79 | 79 | ||
| 80 | @Schema(description = "备注", example = "随便") | 80 | @Schema(description = "备注", example = "随便") |
| 81 | private String remark; | 81 | private String remark; |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/rentalmechanicalcost/vo/RentalMechanicalCostSaveReqVO.java
| @@ -66,7 +66,7 @@ public class RentalMechanicalCostSaveReqVO { | @@ -66,7 +66,7 @@ public class RentalMechanicalCostSaveReqVO { | ||
| 66 | private String companyId; | 66 | private String companyId; |
| 67 | 67 | ||
| 68 | @Schema(description = "部门id", example = "25446") | 68 | @Schema(description = "部门id", example = "25446") |
| 69 | - private Long deptId; | 69 | + private List<Long> deptId; |
| 70 | 70 | ||
| 71 | @Schema(description = "道路ID数组(多选)") | 71 | @Schema(description = "道路ID数组(多选)") |
| 72 | private String roadIds; | 72 | private String roadIds; |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/departmentcost/DepartmentCostServiceImpl.java
| @@ -60,16 +60,6 @@ public class DepartmentCostServiceImpl implements DepartmentCostService { | @@ -60,16 +60,6 @@ public class DepartmentCostServiceImpl implements DepartmentCostService { | ||
| 60 | // 更新 | 60 | // 更新 |
| 61 | DepartmentCostDO updateObj = BeanUtils.toBean(updateReqVO, DepartmentCostDO.class); | 61 | DepartmentCostDO updateObj = BeanUtils.toBean(updateReqVO, DepartmentCostDO.class); |
| 62 | 62 | ||
| 63 | - // add bt wq 20251119 插入增加校验 | ||
| 64 | - LambdaQueryWrapper<DepartmentCostDO> queryWrapper = Wrappers.lambdaQuery(); | ||
| 65 | - queryWrapper.eq(DepartmentCostDO::getSalaryMonth, updateObj.getSalaryMonth()); | ||
| 66 | - queryWrapper.eq(DepartmentCostDO::getExpenseName, updateObj.getExpenseName()); | ||
| 67 | - queryWrapper.eq(DepartmentCostDO::getCompanyId, updateObj.getCompanyId()); | ||
| 68 | - List<DepartmentCostDO> list = departmentCostMapper.selectList(queryWrapper); | ||
| 69 | - if (!CollectionUtils.isEmpty(list)) { | ||
| 70 | - throw exception(COST_FEE_NOT_EXISTS); | ||
| 71 | - } | ||
| 72 | - // add bt wq 20251119 插入增加校验 | ||
| 73 | departmentCostMapper.updateById(updateObj); | 63 | departmentCostMapper.updateById(updateObj); |
| 74 | } | 64 | } |
| 75 | 65 |