| | |
| | | FROM xp_operations_user u |
| | | LEFT JOIN xp_operations_role ur ON u.id = ur.operations_user_id |
| | | LEFT JOIN sys_role r ON ur.role_id = r.id AND r.is_deleted = 0 |
| | | WHERE 1=1 |
| | | <if test="nickName != null and nickName != ''"> |
| | | AND u.nick_name LIKE CONCAT('%', #{nickName}, '%') |
| | | </if> |
| | | <if test="phoneNumber != null and phoneNumber != ''"> |
| | | AND u.phone_number LIKE CONCAT('%', #{phoneNumber}, '%') |
| | | </if> |
| | | <if test="roleId != null"> |
| | | AND r.id = #{roleId} |
| | | </if> |
| | | <where> |
| | | u.is_deleted = 0 |
| | | <if test="nickName != null and nickName != ''"> |
| | | AND u.nick_name LIKE CONCAT('%', #{nickName}, '%') |
| | | </if> |
| | | <if test="phoneNumber != null and phoneNumber != ''"> |
| | | AND u.phone_number LIKE CONCAT('%', #{phoneNumber}, '%') |
| | | </if> |
| | | <if test="roleId != null"> |
| | | AND r.id = #{roleId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectSysUserRoleByOperationUserId" |
| | | resultType="com.xiaopeng.api.model.account.XpOperationsRole"> |