Commit e9a024703ad30c0689a30cead3e186c35def5083

Authored by 王富生
2 parents 0d47d0fb 11e7e889

Merge branch 'dev' into de_wangfs_202511

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; @@ -4,9 +4,32 @@ package com.zteits.urbanops.module.garden.enums;
4 import com.zteits.urbanops.framework.common.exception.ErrorCode; 4 import com.zteits.urbanops.framework.common.exception.ErrorCode;
5 5
6 /** 6 /**
7 - * ERP 错误码枚举类  
8 - * <p>  
9 - * erp 系统,使用 1-100-000-000 段 7 + * 一共10位 分四段
  8 + * 第一段: 1位,类型
  9 + * 1 - 业务模块
  10 + * 2 - 框架模块
  11 + * 第二段:3位, 系统类型
  12 + * 001 - 用户系统
  13 + * 002 - 商品系统
  14 + * 003 - 订单系统
  15 + * 004 - 支付系统
  16 + * 005 - 优惠卷系统
  17 + * 100 - 园林系统
  18 + * 第三段:3位, 模块
  19 + * 001 - 派单
  20 + * 002 - 派单
  21 + * 003 - 人机材
  22 + * 004 - 物料
  23 + * 005 - 古树
  24 + * 006 - 养护
  25 + * 007 - 巡检
  26 + * 010 - 12345
  27 + *
  28 + * 第四段:3位, 错误码
  29 + * 不限规则,每个模块自增
  30 + *
  31 + *
  32 + * garden系统,使用 1-100-000-000 段
10 */ 33 */
11 public interface ErrorCodeConstants { 34 public interface ErrorCodeConstants {
12 35
@@ -33,7 +56,7 @@ public interface ErrorCodeConstants { @@ -33,7 +56,7 @@ public interface ErrorCodeConstants {
33 ErrorCode COST_FEE_NOT_EXISTS_001 = new ErrorCode(1-100-003-001, "未找到对应的导入类"); 56 ErrorCode COST_FEE_NOT_EXISTS_001 = new ErrorCode(1-100-003-001, "未找到对应的导入类");
34 57
35 // ========== 部门费用费用 ========== 58 // ========== 部门费用费用 ==========
36 - ErrorCode DEPARTMENT_COST_NOT_EXISTS_01 = new ErrorCode(1-100-003-001, "部门费用为空"); 59 + ErrorCode DEPARTMENT_COST_NOT_EXISTS = new ErrorCode(1-100-003-001, "部门费用为空");
37 60
38 // ========== 人员费用 ========== 61 // ========== 人员费用 ==========
39 ErrorCode PERSONAL_COST_NOT_EXISTS = new ErrorCode(1-100-003-002, "人员费用为空"); 62 ErrorCode PERSONAL_COST_NOT_EXISTS = new ErrorCode(1-100-003-002, "人员费用为空");
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,7 +90,7 @@ public class DepartmentCostServiceImpl implements DepartmentCostService {
90 90
91 private void validateDepartmentCostExists(Long id) { 91 private void validateDepartmentCostExists(Long id) {
92 if (departmentCostMapper.selectById(id) == null) { 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
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventory/MaterialInventoryServiceImpl.java
@@ -19,7 +19,7 @@ import java.util.List; @@ -19,7 +19,7 @@ import java.util.List;
19 import static com.zteits.urbanops.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST; 19 import static com.zteits.urbanops.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST;
20 import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception; 20 import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception;
21 import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception0; 21 import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception0;
22 -import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.MATERIAL_INVENTORY_NOT_EXISTS; 22 +import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.*;
23 23
24 /** 24 /**
25 * 物料库存 Service 实现类 25 * 物料库存 Service 实现类
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventoryout/MaterialInventoryOutServiceImpl.java
@@ -19,7 +19,7 @@ import java.util.List; @@ -19,7 +19,7 @@ import java.util.List;
19 import static com.zteits.urbanops.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST; 19 import static com.zteits.urbanops.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST;
20 import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception; 20 import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception;
21 import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception0; 21 import static com.zteits.urbanops.framework.common.exception.util.ServiceExceptionUtil.exception0;
22 -import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.MATERIAL_INVENTORY_OUT_NOT_EXISTS; 22 +import static com.zteits.urbanops.module.garden.enums.ErrorCodeConstants.*;
23 23
24 /** 24 /**
25 * 物料出库 Service 实现类 25 * 物料出库 Service 实现类
urbanops-module-workorder/pom.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5 + <modelVersion>4.0.0</modelVersion>
  6 + <parent>
  7 + <groupId>com.zteits.boot</groupId>
  8 + <artifactId>urbanops</artifactId>
  9 + <version>${revision}</version> <!-- 1. 修改 version 为 ${revision} -->
  10 + </parent>
  11 +
  12 + <artifactId>urbanops-module-workorder</artifactId>
  13 + <packaging>jar</packaging> <!-- 2. 新增 packaging 为 jar -->
  14 + <name>${project.artifactId}</name> <!-- 3. 新增 name 为 ${project.artifactId} -->
  15 +
  16 + <description>
  17 + 工单管理模块 园林 市政 物业
  18 + </description>
  19 +
  20 + <dependencies>
  21 + <!-- 业务组件 -->
  22 + <dependency>
  23 + <groupId>com.zteits.boot</groupId>
  24 + <artifactId>urbanops-spring-boot-starter-biz-tenant</artifactId>
  25 + </dependency>
  26 +
  27 + <!-- Web 相关 -->
  28 + <dependency>
  29 + <groupId>com.zteits.boot</groupId>
  30 + <artifactId>urbanops-spring-boot-starter-security</artifactId>
  31 + </dependency>
  32 +
  33 + <dependency>
  34 + <groupId>com.zteits.boot</groupId>
  35 + <artifactId>urbanops-spring-boot-starter-websocket</artifactId>
  36 + </dependency>
  37 +
  38 + <!-- DB 相关 -->
  39 + <dependency>
  40 + <groupId>com.zteits.boot</groupId>
  41 + <artifactId>urbanops-spring-boot-starter-mybatis</artifactId>
  42 + </dependency>
  43 + <dependency>
  44 + <groupId>com.baomidou</groupId>
  45 + <artifactId>mybatis-plus-generator</artifactId> <!-- 代码生成器,使用它解析表结构 -->
  46 + </dependency>
  47 +
  48 + <dependency>
  49 + <groupId>com.zteits.boot</groupId>
  50 + <artifactId>urbanops-spring-boot-starter-redis</artifactId>
  51 + </dependency>
  52 +
  53 + <!-- Config 配置中心相关 -->
  54 +
  55 + <!-- Job 定时任务相关 -->
  56 + <dependency>
  57 + <groupId>com.zteits.boot</groupId>
  58 + <artifactId>urbanops-spring-boot-starter-job</artifactId>
  59 + </dependency>
  60 +
  61 + <!-- 消息队列相关 -->
  62 + <dependency>
  63 + <groupId>com.zteits.boot</groupId>
  64 + <artifactId>urbanops-spring-boot-starter-mq</artifactId>
  65 + </dependency>
  66 +
  67 + <!-- Test 测试相关 -->
  68 + <dependency>
  69 + <groupId>com.zteits.boot</groupId>
  70 + <artifactId>urbanops-spring-boot-starter-test</artifactId>
  71 + <scope>test</scope>
  72 + </dependency>
  73 +
  74 + <!-- 工具类相关 -->
  75 + <dependency>
  76 + <groupId>com.zteits.boot</groupId>
  77 + <artifactId>urbanops-spring-boot-starter-excel</artifactId>
  78 + </dependency>
  79 +
  80 + <dependency>
  81 + <groupId>org.apache.velocity</groupId>
  82 + <artifactId>velocity-engine-core</artifactId> <!-- 实现代码生成 -->
  83 + </dependency>
  84 +
  85 + <!-- OkHttp 用于设备接口对接 -->
  86 + <dependency>
  87 + <groupId>com.squareup.okhttp3</groupId>
  88 + <artifactId>okhttp</artifactId>
  89 + <version>3.14.9</version>
  90 + </dependency>
  91 +
  92 + <!-- 监控相关 -->
  93 + <dependency>
  94 + <groupId>com.zteits.boot</groupId>
  95 + <artifactId>urbanops-spring-boot-starter-monitor</artifactId>
  96 + </dependency>
  97 +
  98 + <dependency>
  99 + <groupId>de.codecentric</groupId>
  100 + <artifactId>spring-boot-admin-starter-server</artifactId> <!-- 实现 Spring Boot Admin Server 服务端 -->
  101 + <optional>true</optional>
  102 + </dependency>
  103 +
  104 + <!-- 三方云服务相关 -->
  105 + <dependency>
  106 + <groupId>commons-net</groupId>
  107 + <artifactId>commons-net</artifactId> <!-- 文件客户端:解决 ftp 连接 -->
  108 + </dependency>
  109 + <dependency>
  110 + <groupId>com.github.mwiede</groupId>
  111 + <artifactId>jsch</artifactId> <!-- 文件客户端:解决 sftp 连接 -->
  112 + </dependency>
  113 + <!-- 文件客户端:解决阿里云、腾讯云、minio 等 S3 连接 -->
  114 + <dependency>
  115 + <groupId>software.amazon.awssdk</groupId>
  116 + <artifactId>s3</artifactId>
  117 + </dependency>
  118 +
  119 + <dependency>
  120 + <groupId>org.apache.tika</groupId>
  121 + <artifactId>tika-core</artifactId> <!-- 文件客户端:文件类型的识别 -->
  122 + </dependency>
  123 +
  124 + <dependency>
  125 + <groupId>com.zteits.boot</groupId>
  126 + <artifactId>urbanops-module-system</artifactId>
  127 + <version>${revision}</version>
  128 + </dependency>
  129 + </dependencies>
  130 +
  131 +</project>