| | |
| | | </if> |
| | | ORDER BY id |
| | | </select> |
| | | |
| | | |
| | | <select id="selectUserPages" resultMap="userResultMaps"> |
| | | select s.*,p.jd,p.wd,ST_ASTEXT ( e.coordinate ) from blade_user s |
| | | LEFT JOIN sys_position p ON p.snumber = s.CODE |
| | |
| | | blade_role br |
| | | on |
| | | s.role_id=br.id |
| | | where s.is_deleted = 0 and br.role_alias ='处警员' |
| | | where s.is_deleted = 0 and br.role_alias ='qfqkdw' |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and s.account = #{user.account} |
| | | </if> |
| | |
| | | on |
| | | bu.role_id=br.id |
| | | where |
| | | br.role_alias ='处警员' |
| | | br.role_alias ='qfqkdw' |
| | | and bu.is_deleted=0 |
| | | <if test="user.realName!=null and user.realName !=''"> |
| | | <bind name="realName" value="'%'+user.realName+'%'"/> |
| | |
| | | <select id="selectUser" resultType="java.util.HashMap"> |
| | | select CAST(id AS CHAR) as groupmember,real_name as rname from blade_user |
| | | </select> |
| | | |
| | | <!--统计用户注册数据--> |
| | | <select id="getUserRegisterStatisticsData" resultType="org.springblade.modules.system.vo.UserRegisterStatisVO"> |
| | | SELECT |
| | | br.name as region, |
| | | count(*) num |
| | | FROM blade_user bu |
| | | left join |
| | | blade_region br |
| | | on |
| | | bu.region_id = br.code |
| | | where bu.region_id is not null |
| | | group by bu.region_id |
| | | </select> |
| | | </mapper> |