| | |
| | | map.put("cz", cznumber); |
| | | map.put("wcz", wcznumber); |
| | | lists.add(map); |
| | | } |
| | | else { |
| | | } else { |
| | | String cz = objectStringMap.get("cz").toString(); |
| | | cznumber = Integer.valueOf(cz); |
| | | String wcz = objectStringMap.get("wcz").toString(); |
| | |
| | | } |
| | | |
| | | |
| | | /** 未缴社保数量 |
| | | /** |
| | | * 未缴社保数量 |
| | | * 通过辖区查询机构id,然后通过机构id查询当前机构交社保的人数(numj单位已交社保数量;numz单位人员总数) |
| | | */ |
| | | @PostMapping("/selectCs") |
| | |
| | | |
| | | /** |
| | | * 统计这个月和上个月交社保的人数,以及金额 |
| | | * |
| | | * @return |
| | | */ |
| | | @PostMapping("/selectTo") |
| | |
| | | |
| | | /** |
| | | * 查询本年所有月份交社保人数 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/queryYearSoil") |
| | |
| | | |
| | | /** |
| | | * 查询本年所有月份社保金额(公司经济运营趋势) |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/queryYearAn") |
| | |
| | | |
| | | /** |
| | | * 公司运营智能统计 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/queryCounts") |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询本年公司运营智能统计 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/queryYearG") |
| | |
| | | |
| | | /** |
| | | * 查询本年所有月份的客户数量 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/queryYearKh") |
| | |
| | | |
| | | /** |
| | | * 查询本年所有月份的保安派遣数量 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/queryYearBanan") |
| | |
| | | map = (HashMap<String, String>) sortMapBykeyAsc(map) ;//key升序 |
| | | return R.data(map); |
| | | } |
| | | |
| | | //升序 |
| | | public static Map<String, String> sortMapBykeyAsc(Map<String, String> oriMap) { |
| | | Map<String, String> sortedMap = new LinkedHashMap<String, String>(); |
| | |
| | | |
| | | /** |
| | | * 统计保安员资格异常的数量 |
| | | * |
| | | * @param jurisdiction |
| | | * @param deptid |
| | | * @param type 1:当天 2:当月 3:全部 |
| | |
| | | return R.data(lists); |
| | | } |
| | | |
| | | /** |
| | | * 统计用户资格异常的数量 |
| | | * @return |
| | | */ |
| | | @PostMapping("/selectExtypeUser") |
| | | public int selectExtypeUser() { |
| | | return informationService.selectExtypeUser(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 统计保安员表现差的数量 |
| | | * |
| | | * @param jurisdiction |
| | | * @param deptid |
| | | * @param type 1:当天 2:当月 3:全部 |
| | |
| | | lists.add(map); |
| | | return R.data(lists); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | return R.data(lists); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | List<Map<Object,Object>> queryCountKh(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> queryCountPq(String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> selectJur(); |
| | | int selectExtypeUser(); |
| | | 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); |
| | |
| | | WHERE id!=1123598813738675201 |
| | | </select> |
| | | |
| | | <select id="selectExtypeUser" resultType="java.lang.Integer"> |
| | | SELECT |
| | | COUNT( CASE WHEN (examination_mx is null or examination_mx = "") THEN 1 END ) as sum |
| | | FROM |
| | | blade_user |
| | | </select> |
| | | |
| | | <!--派遣保安人數量--> |
| | | <select id="selectPcount" resultType="java.util.HashMap"> |
| | | SELECT COUNT |
| | |
| | | </delete> |
| | | |
| | | |
| | | |
| | | <select id="selectLi" resultType="java.util.HashMap"> |
| | | SELECT |
| | | IFNULL( A.num, 0 ) AS num, |
| | |
| | | d.dept_name AS deptname, |
| | | j.dept_name AS jurname |
| | | FROM |
| | | ( SELECT COUNT( * ) AS num, dept_id, jurisdiction FROM blade_user WHERE role_id = '1412226235153731586' GROUP BY dept_id, jurisdiction ) A |
| | | ( SELECT COUNT( * ) AS num, dept_id, jurisdiction FROM blade_user WHERE role_id = '1412226235153731586' GROUP BY |
| | | dept_id, jurisdiction ) A |
| | | LEFT JOIN ( |
| | | SELECT |
| | | COUNT( * ) AS cznum, |
| | |
| | | Map<String, String> queryYearBanan(String year,String jurisdiction,String deptid); |
| | | List<Map<Object,Object>> selectExtype(String jurisdiction,String deptid,String type); |
| | | List<Map<Object,Object>> selectJur(); |
| | | int selectExtypeUser(); |
| | | 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); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int selectExtypeUser() { |
| | | return baseMapper.selectExtypeUser(); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<Object, Object>> selectBx(String jurisdiction, String deptid,String type) { |
| | | return baseMapper.selectBx(jurisdiction, deptid,type); |
| | | } |