| | |
| | | |
| | | /** |
| | | * 派遣數量統計 |
| | | */ |
| | | @PostMapping("/selectPCount") |
| | | public R selectPCount(String jurisdiction, String deptid) { |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | List<Map<String, Object>> lists = new ArrayList<>(); |
| | | Map map1 = informationService.selectPcount(jurisdiction, deptid); |
| | | String pnum = map1.get("pnum").toString(); |
| | | Integer a = Integer.valueOf(pnum); |
| | | Map map2 = informationService.selectWPcount(jurisdiction, deptid); |
| | | String wpnum = map2.get("wpnum").toString(); |
| | | Integer b = Integer.valueOf(wpnum); |
| | | map.put("PCount", a); |
| | | map.put("WPCount", b); |
| | | lists.add(map); |
| | | return R.data(lists); |
| | | } |
| | | // */ |
| | | // @PostMapping("/selectPCount") |
| | | // public R selectPCount(String jurisdiction, String deptid) { |
| | | // Map<String, Object> map = new HashMap<String, Object>(); |
| | | // List<Map<String, Object>> lists = new ArrayList<>(); |
| | | // Map map1 = informationService.selectPcount(jurisdiction, deptid); |
| | | // String pnum = map1.get("pnum").toString(); |
| | | // Integer a = Integer.valueOf(pnum); |
| | | // Map map2 = informationService.selectWPcount(jurisdiction, deptid); |
| | | // String wpnum = map2.get("wpnum").toString(); |
| | | // Integer b = Integer.valueOf(wpnum); |
| | | // map.put("PCount", a); |
| | | // map.put("WPCount", b); |
| | | // lists.add(map); |
| | | // return R.data(lists); |
| | | // } |
| | | |
| | | |
| | | // /** |
| | | // * 单位列表 |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 首页保安公司统计接口 |
| | | * |
| | |
| | | map.put("count", count); |
| | | map.put("list", maps); |
| | | lists.add(map); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | |
| | | return R.data(lists); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | map.put("count", count); |
| | | map.put("list", maps); |
| | | lists.add(map); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | //保安总人数为0 |
| | | if (znum==0){ |
| | | continue; |
| | | } |
| | | else { |
| | | } else { |
| | | int a = znum / 2; |
| | | if (cznum<=a || sbnum<=a){ |
| | | count++; |
| | |
| | | map.put("count",count); |
| | | map.put("list",list1); |
| | | return R.data(map); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | //保安总人数为0 |
| | | if (znum==0){ |
| | | continue; |
| | | } |
| | | else { |
| | | } else { |
| | | int a = znum / 2; |
| | | if (cznum<=a || sbnum<=a){ |
| | | count++; |
| | |
| | | map.put("count", count); |
| | | map.put("List", list1); |
| | | return R.data(map); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | map.put("count", count); |
| | | map.put("List", list1); |
| | | return R.data(map); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | List<Map<Object, Object>> maps = informationService.selectCf(jurisdiction); |
| | | map.put("count", maps.size()); |
| | | return R.data(map); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | if (jurisdiction.equals("1372091709474910209")|| "".equals(jurisdiction)) { |
| | | List<Map<Object, Object>> maps = informationService.selectIn(jurisdiction); |
| | | return R.data(maps); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | if (jurisdiction.equals("1372091709474910209") || "".equals(jurisdiction)){ |
| | | IPage list = informationService.selectTb(Condition.getPage(query), jurisdiction, enterpriseName); |
| | | return R.data(list); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | if (jurisdiction.equals("1372091709474910209")|| "".equals(jurisdiction)) { |
| | | IPage list = informationService.selectJj(Condition.getPage(query), jurisdiction, enterpriseName); |
| | | return R.data(list); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | if (jurisdiction.equals("1372091709474910209")|| "".equals(jurisdiction)) { |
| | | IPage list = informationService.selectYw(Condition.getPage(query), jurisdiction, deptid, stats); |
| | | return R.data(list); |
| | | } |
| | | else { |
| | | } else { |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/selectPCount") |
| | | public R selectPCount(String jurisdiction, String deptid) { |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | List<Map<String, Object>> lists = new ArrayList<>(); |
| | | String childer = informationService.selJurchilder(jurisdiction); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | | for (int j = 0; j < split.length; j++) { |
| | | strArrays += "'" + split[j] + "',"; |
| | | } |
| | | Integer pnums = 0; |
| | | Integer wpnums = 0; |
| | | if (jurisdiction.equals("1372091709474910209") || "".equals(jurisdiction)) { |
| | | List<Map<String, Object>> list = informationService.seleP(jurisdiction, deptid); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | String pnum = list.get(i).get("pnum").toString(); |
| | | Integer a = Integer.parseInt(pnum); |
| | | pnums += a; |
| | | String wpnum = list.get(i).get("wpnum").toString(); |
| | | Integer b = Integer.parseInt(wpnum); |
| | | wpnums += b; |
| | | } |
| | | } else { |
| | | String jurisdictiond = strArrays.substring(0, strArrays.length() - 1); |
| | | List<Map<String, Object>> list = informationService.seleP(jurisdictiond, deptid); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | String pnum = list.get(i).get("pnum").toString(); |
| | | Integer a = Integer.parseInt(pnum); |
| | | pnums += a; |
| | | String wpnum = list.get(i).get("wpnum").toString(); |
| | | Integer b = Integer.parseInt(wpnum); |
| | | wpnums += b; |
| | | } |
| | | } |
| | | // Map map1 = informationService.selectPcount(jurisdiction, deptid); |
| | | // String pnum = map1.get("pnum").toString(); |
| | | // Integer a = Integer.valueOf(pnum); |
| | | // Map map2 = informationService.selectWPcount(jurisdiction, deptid); |
| | | // String wpnum = map2.get("wpnum").toString(); |
| | | // Integer b = Integer.valueOf(wpnum); |
| | | map.put("PCount", pnums); |
| | | map.put("WPCount", wpnums); |
| | | lists.add(map); |
| | | return R.data(lists); |
| | | } |
| | | |
| | | } |