Commit 67f89a5580e0199d786d1a8c5ee2e0a9b5c780c2
1 parent
465f58ad
错误码规整
Showing
2 changed files
with
5 additions
and
1 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/enums/ErrorCodeConstants.java
| ... | ... | @@ -82,6 +82,10 @@ public interface ErrorCodeConstants { |
| 82 | 82 | |
| 83 | 83 | ErrorCode WATER_FEE_NOT_EXISTS = new ErrorCode(1-100-003-013, "水费录入信息不存在"); |
| 84 | 84 | |
| 85 | + ErrorCode DEPARTMENT_COST_NOT_EXISTS = new ErrorCode(1-100-003-014, "部门费用信息不存在"); | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 85 | 89 | // ========== 巡检计划汇总 TODO 补充编号 ========== |
| 86 | 90 | ErrorCode INSPECTION_PLAN_NOT_EXISTS = new ErrorCode(1-100-007-001, "巡检计划汇总不存在"); |
| 87 | 91 | ErrorCode INSPECTION_CYCLE_ID_ERROR = new ErrorCode(1-100-007-002, "周期id错误"); | ... | ... |
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/departmentcost/DepartmentCostServiceImpl.java
| ... | ... | @@ -90,7 +90,7 @@ public class DepartmentCostServiceImpl implements DepartmentCostService { |
| 90 | 90 | |
| 91 | 91 | private void validateDepartmentCostExists(Long id) { |
| 92 | 92 | if (departmentCostMapper.selectById(id) == null) { |
| 93 | - throw exception(DEPARTMENT_COST_NOT_EXISTS_01); | |
| 93 | + throw exception(DEPARTMENT_COST_NOT_EXISTS); | |
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | ... | ... |