xiangpei
2024-07-16 fc36338476ccb0e8fa641794de4022f300f59a2e
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