| | |
| | | <if test="param2.deptName!=null and param2.deptName!=''"> |
| | | and bd.dept_name like concat(concat('%', #{param2.deptName}),'%') |
| | | </if> |
| | | <if test="param2.fullName!=null and param2.fullName!=''"> |
| | | and bd.full_name like concat(concat('%', #{param2.fullName}),'%') |
| | | </if> |
| | | <if test="param2.areaCode!=null and param2.areaCode!=''"> |
| | | and bd.area_code = #{param2.areaCode} |
| | | and bd.area_code like concat(concat('%', #{param2.areaCode}),'%') |
| | | </if> |
| | | <if test="param2.deptCode!=null and param2.deptCode!=''"> |
| | | and bd.dept_code = #{param2.deptCode} |
| | | </if> |
| | | ORDER BY bd.create_time DESC |
| | | </select> |
| | |
| | | <if test="areaCode!=null and areaCode!=''"> |
| | | and bd.area_code = #{areaCode} |
| | | </if> |
| | | <if test="deptIds!=null and deptIds.size()>0"> |
| | | and bd.id in |
| | | <foreach item="item" index="index" collection="deptIds" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | |
| | | |