| | |
| | | </select> |
| | | |
| | | <select id="selectUserPage" resultMap="userResultMap"> |
| | | select * from blade_user where is_deleted = 0 |
| | | select bu.* from blade_user bu |
| | | left join |
| | | blade_dept bd |
| | | on |
| | | bd.id = bu.dept_id |
| | | where bu.is_deleted = 0 |
| | | <if test="user.tenantId!=null and user.tenantId != ''"> |
| | | and tenant_id = #{user.tenantId} |
| | | </if> |
| | |
| | | and real_name like concat(concat('%', #{user.realName}),'%') |
| | | </if> |
| | | <if test="user.deptId!=null and user.deptId != ''"> |
| | | and dept_id like concat(concat('%', #{user.deptId}),'%') |
| | | and (bd.id = #{user.deptId} or bd.parent_id = #{user.deptId}) |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and user_type = #{user.userType} |
| | |
| | | </if> |
| | | <if test="user.hold!=null and user.hold != ''"> |
| | | and hold = #{user.hold} |
| | | </if> <if test="user.jurisdiction!=null and user.jurisdiction != ''"> |
| | | </if> |
| | | <if test="user.jurisdiction!=null and user.jurisdiction != ''"> |
| | | and jurisdiction = #{user.jurisdiction} |
| | | </if> |
| | | <if test="user.securitynumber!=null and user.securitynumber != ''"> |
| | |
| | | <if test="user.examinationType!=null and user.examinationType != ''"> |
| | | and examination_type = #{user.examinationType} |
| | | </if> |
| | | ORDER BY id |
| | | ORDER BY bu.id |
| | | </select> |
| | | |
| | | <select id="getUser" resultMap="userResultMap"> |