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>