龚焕茏
2024-07-22 5016dc772bcb3fdba9ce6d255a5674f1a7160964
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