xiangpei
2024-07-08 9f993243bcb602b80d110c598c838ed92d72de6f
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