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