|
@ -130,6 +130,18 @@ |
|
|
select t.id as id, t.nickname as nickname, t.sex as sex, t.phone_number as phoneNumber,t.workplace as workplace |
|
|
select t.id as id, t.nickname as nickname, t.sex as sex, t.phone_number as phoneNumber,t.workplace as workplace |
|
|
from sys_user t |
|
|
from sys_user t |
|
|
<where> |
|
|
<where> |
|
|
|
|
|
<if test="request.nickname!=null and request.nickname!=''"> |
|
|
|
|
|
and nickname = #{request.nickname} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="request.phoneNumber!=null and request.phoneNumber!=''"> |
|
|
|
|
|
and phone_number = #{request.phoneNumber} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="request.workplace!=null and request.workplace!=''"> |
|
|
|
|
|
and workplace = #{request.workplace} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="request.role!=null and request.role!=''"> |
|
|
|
|
|
and id in (select ur.user_id from sys_user_role ur where ur.role_id=#{request.role}) |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
<select id="getUserPageByCondition" resultMap="UserInfoResponse" parameterType="com.easy.admin.auth.model.UserInfoRequest"> |
|
|
<select id="getUserPageByCondition" resultMap="UserInfoResponse" parameterType="com.easy.admin.auth.model.UserInfoRequest"> |
|
|