From ce8e06d2a34bf21ab07f90ca775a6da1d7ea230e Mon Sep 17 00:00:00 2001 From: chenbowen Date: Fri, 17 Oct 2025 15:34:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20api=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=20requestmapping=20=E5=AF=BC=E8=87=B4=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zt/plat/module/system/api/dept/DeptExternalCodeApi.java | 2 -- .../com/zt/plat/module/system/enums/ErrorCodeConstants.java | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zt-module-system/zt-module-system-api/src/main/java/com/zt/plat/module/system/api/dept/DeptExternalCodeApi.java b/zt-module-system/zt-module-system-api/src/main/java/com/zt/plat/module/system/api/dept/DeptExternalCodeApi.java index 237450f5..3bf23136 100644 --- a/zt-module-system/zt-module-system-api/src/main/java/com/zt/plat/module/system/api/dept/DeptExternalCodeApi.java +++ b/zt-module-system/zt-module-system-api/src/main/java/com/zt/plat/module/system/api/dept/DeptExternalCodeApi.java @@ -8,14 +8,12 @@ import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; @FeignClient(name = ApiConstants.NAME) @Tag(name = "RPC 服务 - 部门外部组织编码映射") -@RequestMapping(ApiConstants.PREFIX + "/dept-external-code") public interface DeptExternalCodeApi { @GetMapping("/get-by-system-and-external") diff --git a/zt-module-system/zt-module-system-api/src/main/java/com/zt/plat/module/system/enums/ErrorCodeConstants.java b/zt-module-system/zt-module-system-api/src/main/java/com/zt/plat/module/system/enums/ErrorCodeConstants.java index 5d41c488..b6f0dd4b 100644 --- a/zt-module-system/zt-module-system-api/src/main/java/com/zt/plat/module/system/enums/ErrorCodeConstants.java +++ b/zt-module-system/zt-module-system-api/src/main/java/com/zt/plat/module/system/enums/ErrorCodeConstants.java @@ -70,6 +70,8 @@ public interface ErrorCodeConstants { ErrorCode DEPT_EXTERNAL_RELATION_EXISTS = new ErrorCode(1_002_004_011, "已经存在该部门在外部系统({})的编码映射"); ErrorCode DEPT_EXTERNAL_CODE_DUPLICATE = new ErrorCode(1_002_004_012, "已经存在该外部系统({})的外部组织编码({})"); ErrorCode DEPT_EXTERNAL_RELATION_NOT_EXISTS = new ErrorCode(1_002_004_013, "组织外部编码映射不存在"); + ErrorCode DEPT_PARENT_CODE_NOT_INITIALIZED = new ErrorCode(1_002_004_014, "上级部门编码未初始化,请先执行部门编码初始化"); + ErrorCode DEPT_CODE_OUT_OF_RANGE = new ErrorCode(1_002_004_015, "部门编码已超出可分配范围,请联系管理员扩展编号规则"); // ========== 岗位模块 1-002-005-000 ==========