| | |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and s.account = #{user.account} |
| | | </if> |
| | | <if test="user.id!=null and user.id != ''"> |
| | | and s.id = #{user.id} |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and s.real_name = #{user.realName} |
| | | </if> |
| | |
| | | |
| | | <!--查询处警人员列表--> |
| | | <select id="selectSecurityUserPageList" resultType="org.springblade.system.user.vo.UsersVo"> |
| | | SELECT bu.*,p.jd,p.wd FROM blade_user bu |
| | | LEFT JOIN |
| | | SELECT bu.id,bu.name,bu.code,bu.real_name realName,bu.account, |
| | | bu.email,bu.phone,bu.birthday,bu.create_time createTime, |
| | | bu.sex,ifnull(bu.online_status,0) online_status, |
| | | bd.dept_name deptName,p.jd,p.wd FROM blade_user bu |
| | | LEFT JOIN |
| | | jfpt.sys_position p |
| | | on |
| | | on |
| | | p.snumber=bu.code |
| | | where |
| | | role_id = #{user.roleId} |
| | | left join |
| | | blade_dept bd |
| | | on |
| | | bd.id=bu.dept_id |
| | | left join |
| | | blade_role br |
| | | on |
| | | bu.role_id=br.id |
| | | where |
| | | br.role_alias ='处警员' |
| | | <if test="user.realName!=null and user.realName !=''"> |
| | | <bind name="realName" value="'%'+user.realName+'%'"/> |
| | | and bu.real_name like #{realName} |