|
|
|
@ -6,6 +6,9 @@ |
|
|
|
<select id="getList" resultType="com.elink.esua.epdc.entity.SysDeptEntity"> |
|
|
|
select t1.*,(select t2.name from sys_dept t2 where t2.id=t1.pid)parentName from sys_dept t1 |
|
|
|
where t1.del_flag = 0 |
|
|
|
<if test="areaCode != null and areaCode.trim() != ''"> |
|
|
|
and t1.area_code LIKE CONCAT( '%', #{areaCode}, '%' ) |
|
|
|
</if> |
|
|
|
<if test="deptIdList != null"> |
|
|
|
and t1.id in |
|
|
|
<foreach item="id" collection="deptIdList" open="(" separator="," close=")"> |
|
|
|
|