Joburgess 5 سال پیش
والد
کامیت
9bc1557da1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      edu-user/edu-user-server/src/main/resources/config/mybatis/OrganizationMapper.xml

+ 1 - 1
edu-user/edu-user-server/src/main/resources/config/mybatis/OrganizationMapper.xml

@@ -148,7 +148,7 @@
 	</select>
 
 	<select id="getNextLevelOrganIds" resultType="int">
-		SELECT id_ FROM organization WHERE parent_organ_id_ =#{organId};
+		SELECT id_ FROM organization WHERE parent_organ_id_ =#{organId} AND id_!=#{organId};
 	</select>
     <select id="getOrgans" resultMap="Organization">
 		SELECT <include refid="organizationColumn"/> FROM organization o WHERE id_ IN