From e0794e0b53af958395f0fc02362e7c7bdd20834e Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Tue, 13 Jan 2026 10:40:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E8=AF=95=E9=AA=8C=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20=E9=80=89=E4=BA=BA=E7=9A=84=E5=9C=B0=E6=96=B9=E5=AD=98?= =?UTF-8?q?=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hxhq/business/dto/select/DeptUserTreeDto.java | 12 ++++++++++++ .../hxhq/business/service/impl/StudySubjectServiceImpl.java | 1 + .../src/main/resources/mapper/business/StudyMapper.xml | 2 +- .../src/main/resources/mapper/system/SysUserMapper.xml | 4 ++-- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/select/DeptUserTreeDto.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/select/DeptUserTreeDto.java index a8675a0..3a12153 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/select/DeptUserTreeDto.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/select/DeptUserTreeDto.java @@ -20,6 +20,10 @@ public class DeptUserTreeDto { * 名称 */ private String name; + /** + * 名称-英文 + */ + private String nameEn; public Integer getType() { return type; @@ -52,4 +56,12 @@ public class DeptUserTreeDto { public void setName(String name) { this.name = name; } + + public String getNameEn() { + return nameEn; + } + + public void setNameEn(String nameEn) { + this.nameEn = nameEn; + } } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java index 86176fb..a3d1cb5 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java @@ -71,6 +71,7 @@ public class StudySubjectServiceImpl extends ServiceImpl - (SELECT d.dept_id AS id, d.parent_id, d.dept_name AS `name`, d.type + (SELECT d.dept_id AS id, d.parent_id, d.dept_name AS `name`, d.dept_name AS `nameEn`, d.type FROM sys_dept d WHERE d.del_flag = '0' ORDER BY d.`dept_id` DESC) UNION ALL - (SELECT u.`user_id` AS id,u.`dept_id` AS parent_id,u.`nick_name` AS `name`,7 AS `type` FROM `sys_user` u + (SELECT u.`user_id` AS id,u.`dept_id` AS parent_id,u.`nick_name` AS `name`,u.`user_name` AS `nameEn`,7 AS `type` FROM `sys_user` u WHERE u.`del_flag`='0' AND u.`user_id`<>1 ORDER BY u.`user_id` DESC)