| | |
| | | * 保安员统计 |
| | | */ |
| | | @PostMapping("/selectLi") |
| | | public R<IPage> selectLi(String jurisdiction, String deptid, Query query) { |
| | | IPage list = informationService.selectLi(Condition.getPage(query), jurisdiction, deptid); |
| | | public R<IPage> selectLi(String jurisdiction, String deptid,String stats, Query query) { |
| | | IPage list = informationService.selectLi(Condition.getPage(query), jurisdiction, deptid,stats); |
| | | return R.data(list); |
| | | } |
| | | |
| | |
| | | * 业务统计情况 |
| | | */ |
| | | @PostMapping("/selectYw") |
| | | public R<IPage> selectYw(String jurisdiction, String deptid, Query query) { |
| | | IPage list = informationService.selectYw(Condition.getPage(query), jurisdiction, deptid); |
| | | public R<IPage> selectYw(String jurisdiction, String deptid,String stats, Query query) { |
| | | IPage list = informationService.selectYw(Condition.getPage(query), jurisdiction, deptid,stats); |
| | | return R.data(list); |
| | | } |
| | | |
| | |
| | | Map<String, String> queryYearPz(String year,String jurisdiction,String deptid); |
| | | Map<String, String> queryYearAn(String year,String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> queryCountB(String jurisdiction,String deptid); |
| | | List selectLi(IPage page, String jurisdiction, String deptid); |
| | | List selectLi(IPage page, String jurisdiction, String deptid,String stats); |
| | | List<Map<Object,Object>> queryCountZc(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> queryCountCz(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> queryCountSb(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> queryCountKh(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> queryCountPq(String jurisdiction,String deptid); |
| | | List selectYw(IPage page,String jurisdiction,String deptid); |
| | | List selectYw(IPage page,String jurisdiction,String deptid,String stats); |
| | | List selectUIn(IPage page,String deptid,String name,String hold,String photo,String examinationtype,String dispatch,String soil); |
| | | List<Map<Object,Object>> selectJur(); |
| | | int selectExtypeUser(); |
| | |
| | | WHERE |
| | | YEAR ( s.update_time ) =#{year} |
| | | AND dispatch = 0 |
| | | AND `status`=1 |
| | | AND is_deleted=0 |
| | | AND dept_id IN ( SELECT i.departmentid FROM sys_information i LEFT JOIN sys_jurisdiction j ON j.id = |
| | | i.jurisdiction where 1=1 |
| | | <if test="jurisdiction!=null and jurisdiction!='' and jurisdiction!='1123598813738675201'"> |
| | |
| | | IFNULL( G.yicnum, 0 ) AS yicnum, |
| | | A.dept_id, |
| | | d.enterpriseName AS deptname, |
| | | d.stats, |
| | | j.dept_name AS jurname |
| | | FROM |
| | | ( SELECT COUNT( * ) AS num, dept_id, jurisdiction FROM blade_user WHERE role_id = '1412226235153731586' and |
| | |
| | | </if> |
| | | <if test="deptid!=null and deptid!=''"> |
| | | and d.dept_name like concat(concat('%', #{deptid}),'%') |
| | | </if> |
| | | <if test="stats!=null and stats!=''"> |
| | | and d.stats =#{stats} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | SELECT |
| | | A.enterpriseName, |
| | | A.departmentid, |
| | | A.stats, |
| | | A.jurisdiction, |
| | | A.dept_name as jurname, |
| | | IFNULL( B.num, 0 ) AS fwnum, |
| | |
| | | SELECT |
| | | i.enterpriseName, |
| | | i.departmentid, |
| | | i.stats, |
| | | i.jurisdiction, |
| | | j.dept_name |
| | | FROM |
| | |
| | | <if test="deptid!=null and deptid!=''"> |
| | | and A.enterpriseName like concat('%', #{deptid},'%') |
| | | </if> |
| | | <if test="stats!=null and stats!=''"> |
| | | and A.stats=#{stats} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--保安人员详情--> |
| | | <select id="selectUIn" resultType="java.util.HashMap"> |
| | | SELECT real_name,securitynumber,cardid,phone,hold,soil,photo,examination_type,dispatch FROM blade_user WHERE |
| | | role_id='1412226235153731586' AND is_deleted=0 AND `status`=1 |
| | | SELECT |
| | | u.real_name, |
| | | u.securitynumber, |
| | | u.cardid, |
| | | u.phone, |
| | | u.hold, |
| | | u.soil, |
| | | u.photo, |
| | | u.examination_type, |
| | | u.dispatch, |
| | | i.enterpriseName |
| | | FROM |
| | | blade_user u |
| | | LEFT JOIN sys_information i ON i.departmentid = u.dept_id |
| | | WHERE |
| | | u.role_id = '1412226235153731586' |
| | | AND u.is_deleted = 0 |
| | | AND u.`status` =1 |
| | | <if test="deptid!=null and deptid!=''"> |
| | | and dept_id=#{deptid} |
| | | </if> |
| | |
| | | Map selectWPcount(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> selectIn(String jurisdiction); |
| | | void deleteDept(String ids); |
| | | IPage selectLi(IPage<List> page,String jurisdiction, String deptid); |
| | | IPage selectLi(IPage<List> page,String jurisdiction, String deptid,String stats); |
| | | List<Map<Object,Object>> seCountI(String jurisdiction,String deptid); |
| | | String seCountUm(String jurisdiction,String deptid); |
| | | String seCountUg(String jurisdiction,String deptid); |
| | | Map<String, String> queryYearPz(String year,String jurisdiction,String deptid); |
| | | IPage selectTb(IPage<List> page,String jurisdiction,String enterpriseName); |
| | | IPage selectJj(IPage<List> page,String jurisdiction,String enterpriseName); |
| | | IPage selectYw(IPage<List> page,String jurisdiction,String deptid); |
| | | IPage selectYw(IPage<List> page,String jurisdiction,String deptid,String stats); |
| | | IPage selectUIn(IPage<List> page,String deptid,String name,String hold,String photo,String examinationtype,String dispatch,String soil); |
| | | IPage selectDis(IPage<List> page,String jurisdiction,String deptid,String fid); |
| | | List<Map<Object,Object>> selectFw(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage selectLi(IPage page,String jurisdiction, String deptid) { |
| | | return page.setRecords(baseMapper.selectLi(page,jurisdiction, deptid)); |
| | | public IPage selectLi(IPage page,String jurisdiction, String deptid,String stats) { |
| | | return page.setRecords(baseMapper.selectLi(page,jurisdiction, deptid,stats)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage selectYw(IPage page,String jurisdiction, String deptid) { |
| | | return page.setRecords(baseMapper.selectYw(page,jurisdiction, deptid)); |
| | | public IPage selectYw(IPage page,String jurisdiction, String deptid,String stats) { |
| | | return page.setRecords(baseMapper.selectYw(page,jurisdiction, deptid,stats)); |
| | | } |
| | | |
| | | @Override |