123456789101112131415161718 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.xjrsoft.module.organization.mapper.UserMapper">
- <select id="getResetUserPage" parameterType="com.xjrsoft.module.organization.dto.UserPageDto" resultType="com.xjrsoft.module.organization.vo.ResetUserPageVo">
- SELECT DISTINCT t1.*,t3.name AS gender_cn FROM xjr_user t1
- INNER JOIN xjr_user_role_relation t2 ON t2.user_id = t1.id
- LEFT JOIN xjr_dictionary_detail t3 ON t1.gender = t3.code
- WHERE t1.delete_mark = 0
- <if test="dto.keyword != null and dto.keyword !=''">
- and (t1.name like concat('%', #{dto.keyword}, '%') or t1.mobile like concat('%', #{dto.keyword}, '%'))
- </if>
- <if test="dto.roleId != null">
- and t2.role_id = #{dto.roleId}
- </if>
- </select>
- </mapper>
|