| | |
| | | <result column="post_id" property="postId"/> |
| | | <result column="online_status" property="online_status"/> |
| | | <result column="work_status" property="work_status"/> |
| | | <result column="examination_type" property="examination_type"/> |
| | | <result column="examination_mx" property="examination_mx"/> |
| | | </resultMap> |
| | | <resultMap id="userResultMaps" type="org.springblade.modules.system.vo.UsersVo"> |
| | | <result column="id" property="id"/> |
| | |
| | | <result column="work_status" property="work_status"/> |
| | | <result column="jd" property="jd"/> |
| | | <result column="wd" property="wd"/> |
| | | <result column="examination_type" property="examination_type"/> |
| | | <result column="examination_mx" property="examination_mx"/> |
| | | <result column="dept_name" property="deptName"/> |
| | | </resultMap> |
| | | |
| | |
| | | select s.*,p.jd,p.wd,ST_ASTEXT ( e.coordinate ) from blade_user s |
| | | LEFT JOIN sys_position p ON p.snumber = s.CODE |
| | | LEFT JOIN sys_enclosure e ON e.anumber = s.CODE |
| | | |
| | | where s.is_deleted = 0 |
| | | left join |
| | | blade_role br |
| | | on |
| | | s.role_id=br.id |
| | | where s.is_deleted = 0 and br.role_alias ='处警员' |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and s.account = #{user.account} |
| | | </if> |
| | |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and s.user_type = #{user.userType} |
| | | </if> |
| | | <if test="user.examination_type!=null and user.examination_type != ''"> |
| | | and s.examination_type = #{user.examination_type} |
| | | </if> |
| | | <if test="deptIdList!=null and deptIdList.size>0"> |
| | | and s.id in ( |
| | |
| | | order by bu.code asc |
| | | </select> |
| | | |
| | | |
| | | <select id="selectUser" resultType="java.util.HashMap"> |
| | | select CAST(id AS CHAR) as groupmember,real_name as rname from blade_user |
| | | </select> |
| | | </mapper> |