From 7f25606654ebe94b5d82cfd9f74275989c71538d Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 16 七月 2024 11:47:40 +0800
Subject: [PATCH] feat:默认选中当前部门

---
 src/main/resources/mapper/SubjectMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/SubjectMapper.xml b/src/main/resources/mapper/SubjectMapper.xml
index b5bfd26..e7d4ac5 100644
--- a/src/main/resources/mapper/SubjectMapper.xml
+++ b/src/main/resources/mapper/SubjectMapper.xml
@@ -116,7 +116,7 @@
 
     <select id="allSubject" resultMap="BaseResultMap">
         select
-        ts.id, ts.name
+        DISTINCT ts.id, ts.name
         from t_subject ts
         <if test="admin == false and deptIds != null and deptIds.size > 0">
             INNER JOIN t_subject_dept tsd ON tsd.subject_id = ts.id

--
Gitblit v1.8.0