|
|
@ -85,10 +85,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectUnitList" parameterType="unit" resultMap="unitResult">
|
|
|
|
<select id="selectUnitList" parameterType="unit" resultMap="unitResult">
|
|
|
|
select a.*,d.dept_name as deptName from unit_info a
|
|
|
|
select a.* from unit_info a
|
|
|
|
left join sys_dept d on a.dept_id = d.dept_id
|
|
|
|
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
a.del_flag = '0' and d.del_flag = '0'
|
|
|
|
a.del_flag = '0'
|
|
|
|
<if test="req.nickName != null and req.nickName != '' ">
|
|
|
|
<if test="req.nickName != null and req.nickName != '' ">
|
|
|
|
and a.nick_name like concat('%',#{req.nickName},'%')
|
|
|
|
and a.nick_name like concat('%',#{req.nickName},'%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|