diff --git a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/enums/ErrorCodeConstants.java b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/enums/ErrorCodeConstants.java index fe9d690..272b8d2 100644 --- a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/enums/ErrorCodeConstants.java +++ b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/enums/ErrorCodeConstants.java @@ -4,9 +4,32 @@ package com.zteits.urbanops.module.garden.enums; import com.zteits.urbanops.framework.common.exception.ErrorCode; /** - * ERP 错误码枚举类 - *
- * erp 系统,使用 1-100-000-000 段
+ * 一共10位 分四段
+ * 第一段: 1位,类型
+ * 1 - 业务模块
+ * 2 - 框架模块
+ * 第二段:3位, 系统类型
+ * 001 - 用户系统
+ * 002 - 商品系统
+ * 003 - 订单系统
+ * 004 - 支付系统
+ * 005 - 优惠卷系统
+ * 100 - 园林系统
+ * 第三段:3位, 模块
+ * 001 - 派单
+ * 002 - 派单
+ * 003 - 人机材
+ * 004 - 物料
+ * 005 - 古树
+ * 006 - 养护
+ * 007 - 巡检
+ * 010 - 12345
+ *
+ * 第四段:3位, 错误码
+ * 不限规则,每个模块自增
+ *
+ *
+ * garden系统,使用 1-100-000-000 段
*/
public interface ErrorCodeConstants {
@@ -33,7 +56,7 @@ public interface ErrorCodeConstants {
ErrorCode COST_FEE_NOT_EXISTS_001 = new ErrorCode(1-100-003-001, "未找到对应的导入类");
// ========== 部门费用费用 ==========
- ErrorCode DEPARTMENT_COST_NOT_EXISTS_01 = new ErrorCode(1-100-003-001, "部门费用为空");
+ ErrorCode DEPARTMENT_COST_NOT_EXISTS = new ErrorCode(1-100-003-001, "部门费用为空");
// ========== 人员费用 ==========
ErrorCode PERSONAL_COST_NOT_EXISTS = new ErrorCode(1-100-003-002, "人员费用为空");
diff --git a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/departmentcost/DepartmentCostServiceImpl.java b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/departmentcost/DepartmentCostServiceImpl.java
index 212ae04..1101ea3 100644
--- a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/departmentcost/DepartmentCostServiceImpl.java
+++ b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/departmentcost/DepartmentCostServiceImpl.java
@@ -90,7 +90,7 @@ public class DepartmentCostServiceImpl implements DepartmentCostService {
private void validateDepartmentCostExists(Long id) {
if (departmentCostMapper.selectById(id) == null) {
- throw exception(DEPARTMENT_COST_NOT_EXISTS_01);
+ throw exception(DEPARTMENT_COST_NOT_EXISTS);
}
}
diff --git a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventory/MaterialInventoryServiceImpl.java b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventory/MaterialInventoryServiceImpl.java
index 9afb0d3..05d87b4 100644
--- a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventory/MaterialInventoryServiceImpl.java
+++ b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventory/MaterialInventoryServiceImpl.java
@@ -19,7 +19,7 @@ import java.util.List;
import static com.zteits.urbanops.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST;
import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception;
import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception0;
-import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.MATERIAL_INVENTORY_NOT_EXISTS;
+import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.*;
/**
* 物料库存 Service 实现类
diff --git a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventoryout/MaterialInventoryOutServiceImpl.java b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventoryout/MaterialInventoryOutServiceImpl.java
index 6fbb38c..85aafba 100644
--- a/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventoryout/MaterialInventoryOutServiceImpl.java
+++ b/urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventoryout/MaterialInventoryOutServiceImpl.java
@@ -19,7 +19,7 @@ import java.util.List;
import static com.zteits.urbanops.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST;
import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception;
import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception0;
-import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.MATERIAL_INVENTORY_OUT_NOT_EXISTS;
+import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.*;
/**
* 物料出库 Service 实现类
diff --git a/urbanops-module-workorder/pom.xml b/urbanops-module-workorder/pom.xml
new file mode 100644
index 0000000..b8e6f0d
--- /dev/null
+++ b/urbanops-module-workorder/pom.xml
@@ -0,0 +1,131 @@
+
+