| | |
| | | * 保安派遣数量统计 |
| | | */ |
| | | @PostMapping("/selectDisp") |
| | | public R selectDisp(String deptid) { |
| | | List<Map<Object, Object>> lists = informationService.selectDisp(deptid); |
| | | public R selectDisp(String deptid,String jurisdiction) { |
| | | List<Map<Object, Object>> lists = informationService.selectDisp(deptid,jurisdiction); |
| | | return R.data(lists); |
| | | } |
| | | |
| | |
| | | * 社保统计 |
| | | */ |
| | | @PostMapping("/selectSoil") |
| | | public R selectSoil(String deptid) { |
| | | List<Map<Object, Object>> lists = informationService.selectSoil(deptid); |
| | | public R selectSoil(String deptid,String jurisdiction) { |
| | | List<Map<Object, Object>> lists = informationService.selectSoil(deptid,jurisdiction); |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | for (int i = 0; i < lists.size(); i++) { |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping("/queryYearKh") |
| | | public R queryYearKh(String jurisdiction, String deptid) { |
| | | @PostMapping("/queryYearKh") |
| | | public List queryYearKh(String jurisdiction, String deptid) { |
| | | Calendar cal = Calendar.getInstance(); |
| | | String year = String.valueOf(cal.get(Calendar.YEAR)); |
| | | Map<String, String> map = informationService.queryYearKh(year, jurisdiction, deptid); |
| | | map = (HashMap<String, String>) sortMapBykeyAsc(map);//key升序 |
| | | return R.data(map); |
| | | List list = informationService.queryYearKh(year, jurisdiction, deptid); |
| | | return list; |
| | | } |
| | | //升序 |
| | | public static Map<String, String> sortMapBykeyAsc(Map<String, String> oriMap) { |