| | |
| | | and tenant_id = #{user.tenantId} |
| | | </if> |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and account = #{user.account} |
| | | and account LIKE CONCAT('%', #{user.account},'%') |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and real_name = #{user.realName} |
| | | and real_name LIKE CONCAT('%', #{user.realName},'%') |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and user_type = #{user.userType} |
| | |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | <if test="user.phone !=null and user.phone !='' "> |
| | | AND phone LIKE CONCAT('%',#{user.phone},'%') |
| | | </if> |
| | | <if test="user.roleId !=null and user.roleId !=''"> |
| | | AND FIND_IN_SET(role_id,#{user.roleId}) |
| | | </if> |
| | | <if test="user.deptId !=null and user.deptId !=''"> |
| | | AND dept_id = #{user.deptId} |
| | | </if> |
| | | ORDER BY id |
| | | </select> |
| | | |