@@ -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>
@@ -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>