From b729be796cf7028267f5c4072c15e5b24eaf508b Mon Sep 17 00:00:00 2001 From: zhangjunwen Date: Wed, 17 Jul 2024 10:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=83=A8=E9=97=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=A1=8C=E4=B8=9A=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/core/domain/entity/SysDept.java | 13 +++++++++ .../resources/mapper/system/SysDeptMapper.xml | 8 ++++-- zfipc-ui/src/views/system/dept/index.vue | 28 +++++++++++++++++-- 3 files changed, 45 insertions(+), 4 deletions(-) diff --git a/zfipc-server/zfipc-common/src/main/java/com/inspur/common/core/domain/entity/SysDept.java b/zfipc-server/zfipc-common/src/main/java/com/inspur/common/core/domain/entity/SysDept.java index b7d499a..7dc291d 100644 --- a/zfipc-server/zfipc-common/src/main/java/com/inspur/common/core/domain/entity/SysDept.java +++ b/zfipc-server/zfipc-common/src/main/java/com/inspur/common/core/domain/entity/SysDept.java @@ -55,6 +55,11 @@ public class SysDept extends BaseEntity /** 行政区划ID */ private String regionId; + /** + * 行业代号 + */ + private String industryCode; + /** 子部门 */ private List children = new ArrayList(); @@ -192,6 +197,14 @@ public class SysDept extends BaseEntity this.regionId = regionId; } + public String getIndustryCode() { + return industryCode; + } + + public void setIndustryCode(String industryCode) { + this.industryCode = industryCode; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/zfipc-server/zfipc-system/src/main/resources/mapper/system/SysDeptMapper.xml b/zfipc-server/zfipc-system/src/main/resources/mapper/system/SysDeptMapper.xml index 439f2f8..c0ae853 100644 --- a/zfipc-server/zfipc-system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/zfipc-server/zfipc-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -21,10 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time,d.region_id + select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time,d.region_id,d.industry_code from sys_dept d @@ -64,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"