zouxuan 5 年之前
父节点
当前提交
96671d25ce
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      edu-user/edu-user-server/src/main/resources/config/mybatis/SubjectMapper.xml

+ 3 - 0
edu-user/edu-user-server/src/main/resources/config/mybatis/SubjectMapper.xml

@@ -108,6 +108,9 @@
             <if test="parentId != null">
                 AND parent_subject_id_ = #{parentId}
             </if>
+            <if test="parentId == null">
+                AND parent_subject_id_ != 0
+            </if>
             <if test="tenantId != null">
                 AND tenant_id_ = #{tenantId}
             </if>