zhangjr hace 5 años
padre
commit
0f6f80fee3

+ 1 - 0
src/main/resources/mapper/base/Dept.xml

@@ -26,6 +26,7 @@
 	<select id="treeList" resultType="am.lodge.platform.model.Dept">
 		select id, name, case when PARENT_ID ='' or PARENT_ID is null then org_id else PARENT_ID end as parentId from SYS_Dept
 		where org_id = #{orgId}
+		<if test="deptId!='' and deptId!='11421101'.toString()"> and id= #{deptId}</if>
 		order by order_Num
 	</select>
 

+ 1 - 1
src/main/resources/mapper/base/Org.xml

@@ -17,7 +17,7 @@
         SELECT
         <include refid="Columns"/>
         FROM
-        <include refid="TableName"/>
+        SYS_ORG
         <where>
             <if test="name != null">and NAME like '%' || #{name}</if>
             <if test="id != null">and ID = #{id}</if>