From 86603282c0cc5f005b740112311d89e99b8fc570 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期一, 08 七月 2024 17:39:10 +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