| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 统计保安员资格异常的数量 |
| | | * @param jurisdiction |
| | | * @param deptid |
| | | * @param type 1:当天 2:当月 3:全部 |
| | | * @return |
| | | */ |
| | | @PostMapping("/selectExtype") |
| | | public R selectExtype(String jurisdiction,String deptid) { |
| | | public R selectExtype(String jurisdiction,String deptid,String type) { |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | Integer count=0; |
| | | List<Map<String, Object>> lists = new ArrayList<>(); |
| | | List<Map<Object, Object>> maps = informationService.selectExtype(jurisdiction, deptid); |
| | | List<Map<Object, Object>> maps = informationService.selectExtype(jurisdiction, deptid,type); |
| | | for (int i=0;i<maps.size();i++){ |
| | | String num = maps.get(i).get("num").toString(); |
| | | count+= Integer.valueOf(num); |
| | |
| | | return R.data(lists); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 统计保安员表现差的数量 |
| | | * @param jurisdiction |
| | | * @param deptid |
| | | * @param type 1:当天 2:当月 3:全部 |
| | | * @return |
| | | */ |
| | | @PostMapping("/selectBx") |
| | | public R selectBx(String jurisdiction,String deptid) { |
| | | public R selectBx(String jurisdiction,String deptid,String type) { |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | Integer count=0; |
| | | List<Map<String, Object>> lists = new ArrayList<>(); |
| | | List<Map<Object, Object>> maps = informationService.selectBx(jurisdiction, deptid); |
| | | List<Map<Object, Object>> maps = informationService.selectBx(jurisdiction, deptid,type); |
| | | for (int i=0;i<maps.size();i++){ |
| | | String num = maps.get(i).get("num").toString(); |
| | | count+= Integer.valueOf(num); |
| | |
| | | //辖区名称 |
| | | String jurname = list.get(i).get("dept_name").toString(); |
| | | //保安员表现差预警数量 |
| | | List<Map<Object, Object>> mapbx = informationService.selectBx(jurisdiction, ""); |
| | | List<Map<Object, Object>> mapbx = informationService.selectBx(jurisdiction, "",""); |
| | | for (int ibx=0;ibx<mapbx.size();ibx++){ |
| | | String num = mapbx.get(ibx).get("num").toString(); |
| | | count+= Integer.valueOf(num); |
| | | } |
| | | //保安员资格异常的数量 |
| | | List<Map<Object, Object>> mapEx = informationService.selectExtype(jurisdiction, ""); |
| | | List<Map<Object, Object>> mapEx = informationService.selectExtype(jurisdiction, "",""); |
| | | for (int iex=0;iex<mapEx.size();iex++){ |
| | | String num = mapEx.get(iex).get("num").toString(); |
| | | count+= Integer.valueOf(num); |
| | |
| | | List<Map<Object,Object>> queryCountKh(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> queryCountPq(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> selectJur(); |
| | | List<Map<Object,Object>> selectExtype(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> selectBx(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> selectExtype(String jurisdiction,String deptid,String type); |
| | | List<Map<Object,Object>> selectBx(String jurisdiction,String deptid,String type); |
| | | List<Map<Object,Object>> seCountI(String jurisdiction,String deptid); |
| | | String seCountUm(String jurisdiction,String deptid); |
| | | String seCountUg(String jurisdiction,String deptid); |
| | |
| | | <if test="deptid!=null and deptid!=''"> |
| | | and u.dept_id =#{deptid} |
| | | </if> |
| | | <if test="type=1"> |
| | | and to_days(u.update_time) = to_days(now()); |
| | | </if> |
| | | <if test="type=2"> |
| | | and DATE_FORMAT(u.update_time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' ) |
| | | </if> |
| | | GROUP BY d.dept_name, |
| | | j.dept_name |
| | | </select> |
| | |
| | | <if test="deptid!=null and deptid!=''"> |
| | | and u.departmentid =#{deptid} |
| | | </if> |
| | | <if test="type=1"> |
| | | and to_days(u.time) = to_days(now()); |
| | | </if> |
| | | <if test="type=2"> |
| | | and DATE_FORMAT(u.time, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' ) |
| | | </if> |
| | | GROUP BY d.dept_name, |
| | | j.dept_name |
| | | </select> |
| | |
| | | Map<String, String> queryYearCz(String year,String jurisdiction,String deptid); |
| | | Map<String, String> queryYearKh(String year,String jurisdiction,String deptid); |
| | | Map<String, String> queryYearBanan(String year,String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> selectExtype(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> selectExtype(String jurisdiction,String deptid,String type); |
| | | List<Map<Object,Object>> selectJur(); |
| | | List<Map<Object,Object>> selectBx(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> selectBx(String jurisdiction,String deptid,String type); |
| | | Map<String, String> queryYearDe(String year,String jurisdiction,String deptid); |
| | | Map selectPcount(String jurisdiction,String deptid); |
| | | Map selectWPcount(String jurisdiction,String deptid); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<Object, Object>> selectExtype(String jurisdiction, String deptid) { |
| | | return baseMapper.selectExtype(jurisdiction, deptid); |
| | | public List<Map<Object, Object>> selectExtype(String jurisdiction, String deptid,String type) { |
| | | return baseMapper.selectExtype(jurisdiction, deptid,type); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<Object, Object>> selectBx(String jurisdiction, String deptid) { |
| | | return baseMapper.selectBx(jurisdiction, deptid); |
| | | public List<Map<Object, Object>> selectBx(String jurisdiction, String deptid,String type) { |
| | | return baseMapper.selectBx(jurisdiction, deptid,type); |
| | | } |
| | | |
| | | @Override |