| | |
| | | <result column="work_status" property="work_status"/> |
| | | <result column="jd" property="jd"/> |
| | | <result column="wd" property="wd"/> |
| | | <result column="dept_name" property="deptName"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectUserPage" resultMap="userResultMap"> |
| | |
| | | </select> |
| | | |
| | | <!--查询处警人员列表--> |
| | | <select id="selectSecurityUserPageList" resultType="org.springblade.system.user.vo.UsersVo"> |
| | | SELECT bu.id,bu.name,bu.code,bu.real_name realName,bu.account, |
| | | bu.email,bu.phone,bu.birthday,bu.create_time createTime, |
| | | <select id="selectSecurityUserPageList" resultMap="userResultMaps"> |
| | | SELECT bu.id,bu.name,bu.code,bu.real_name,bu.account, |
| | | bu.email,bu.phone,bu.birthday,bu.create_time, |
| | | bu.sex,ifnull(bu.online_status,0) online_status, |
| | | bd.dept_name deptName,p.jd,p.wd FROM blade_user bu |
| | | bd.dept_name,p.jd,p.wd FROM blade_user bu |
| | | LEFT JOIN |
| | | jfpt.sys_position p |
| | | on |
| | |
| | | bu.role_id=br.id |
| | | where |
| | | br.role_alias ='处警员' |
| | | and bu.is_deleted=0 |
| | | <if test="user.realName!=null and user.realName !=''"> |
| | | <bind name="realName" value="'%'+user.realName+'%'"/> |
| | | and bu.real_name like #{realName} |
| | |
| | | </if> |
| | | order by bu.code asc |
| | | </select> |
| | | |
| | | <!--根据用户编号查询用户信息--> |
| | | <select id="selUserByCode" resultType="org.springblade.system.user.entity.User"> |
| | | select code,dept_id deptId from blade_user where is_deleted = 0 and code=#{code} |
| | | </select> |
| | | </mapper> |