| | |
| | | <if test="query.nickName != null and query.nickName != ''"> |
| | | AND u.nick_name LIKE concat('%',#{query.nickName},'%') |
| | | </if> |
| | | |
| | | <if test="query.roleIds != null and query.roleIds.size()>0"> |
| | | AND ur.role_id IN |
| | | <foreach collection="query.roleIds" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="query.phonenumber != null and query.phonenumber != ''"> |
| | | AND u.phonenumber LIKE concat('%',#{query.phonenumber},'%') |
| | | </if> |
| | | <if test="query.deptName != null and query.deptName != ''"> |
| | | AND t1.dept_name LIKE concat('%',#{query.deptName},'%') |
| | | </if> |
| | | <if test="query.roleName != null and query.roleName != ''"> |
| | | AND t1.dept_name LIKE concat('%',#{query.roleName},'%') |
| | | </if> |
| | | |
| | | and u.user_id!=1 |
| | | ORDER BY u.create_time DESC |
| | | </select> |
| | | <select id="selectIdByPhone" resultType="java.lang.Long"> |
| | |
| | | <if test="deptId != null and deptId != 0">dept_id = #{deptId},</if> |
| | | <if test="userName != null and userName != ''">user_name = #{userName},</if> |
| | | <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if> |
| | | <if test="position != null and position != ''">nick_name = #{position},</if> |
| | | <if test="position != null and position != ''">`position` = #{position},</if> |
| | | <if test="positionTime != null">position_time = #{positionTime},</if> |
| | | <if test="idCard != null and idCard != ''">id_card = #{idCard},</if> |
| | | <if test="organization != null and organization != ''">organization = #{organization},</if> |