|  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |  | 
 |  |  | //        Map<String, Object> userInfo = (Map<String, Object>) TokenUtils.getUserInfo(); | 
 |  |  | //        Object unitId = userInfo.get("unitId"); | 
 |  |  | //        Map<String, Object> orgInfo = (Map<String, Object>) userInfo.get("organization"); | 
 |  |  | //        Integer orgId = (Integer) orgInfo.get("id"); | 
 |  |  | //        if (!ObjectUtils.isEmpty(map.get("unitId"))){ | 
 |  |  | //            wrapper.in("unit_id",map.get("unitId").toString()); | 
 |  |  | //        }else { | 
 |  |  | //            if (orgId!=24){ | 
 |  |  | //                if (ObjectUtils.isEmpty(unitId)){ | 
 |  |  | //                    return null; | 
 |  |  | //                } | 
 |  |  | //                ResponsibilityUnit responsibilityUnit1 = responsibilityUnitMapper.selectById(Integer.parseInt(unitId.toString())); | 
 |  |  | //                Integer areaCode = responsibilityUnit1.getAreaCode(); | 
 |  |  | //                List<ResponsibilityUnit> responsibilityUnits = responsibilityUnitService.selectUnit(areaCode); | 
 |  |  | //                if (ObjectUtils.isEmpty(responsibilityUnits)){ | 
 |  |  | //                    List<ResponsibilityUnit> responsibilityUnits1 = responsibilityUnitService.selectAreaUnit(areaCode); | 
 |  |  | //                    Map<Integer, List<ResponsibilityUnit>> collect = responsibilityUnits1.stream().collect(Collectors.groupingBy(o -> o.getUnitId())); | 
 |  |  | //                    List<Integer> collect1 = collect.keySet().stream().collect(Collectors.toList()); | 
 |  |  | //                    wrapper.in("unit_id",collect1); | 
 |  |  | //                }else { | 
 |  |  | //                    Map<Integer, List<ResponsibilityUnit>> collect = responsibilityUnits.stream().collect(Collectors.groupingBy(o -> o.getUnitId())); | 
 |  |  | //                    List<Integer> collect1 = collect.keySet().stream().collect(Collectors.toList()); | 
 |  |  | //                    wrapper.in("unit_id",collect1); | 
 |  |  | //                } | 
 |  |  | //            } | 
 |  |  | //        } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         HashMap<String, Object> rsMap = new HashMap<>(); | 
 |  |  |         ArrayList<Map<String, Object>> polluteArrayList = new ArrayList<>(); | 
 |  |  | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  | //        Map<String, Object> userInfo = (Map<String, Object>) TokenUtils.getUserInfo(); | 
 |  |  | //        Object unitId = userInfo.get("unitId"); | 
 |  |  | //        Map<String, Object> orgInfo = (Map<String, Object>) userInfo.get("organization"); | 
 |  |  | //        Integer orgId = (Integer) orgInfo.get("id"); | 
 |  |  | // | 
 |  |  | //        if (ObjectUtils.isEmpty(unitId)){ | 
 |  |  | //            return null; | 
 |  |  | //        } | 
 |  |  | //        if (orgId!=24){ | 
 |  |  | //            ResponsibilityUnit responsibilityUnit1 = responsibilityUnitMapper.selectById(Integer.parseInt(unitId.toString())); | 
 |  |  | //            Integer areaCode = responsibilityUnit1.getAreaCode(); | 
 |  |  | //            List<ResponsibilityUnit> responsibilityUnits = responsibilityUnitService.selectUnit(areaCode); | 
 |  |  | //            if (ObjectUtils.isEmpty(responsibilityUnits)){ | 
 |  |  | //                List<ResponsibilityUnit> responsibilityUnits1 = responsibilityUnitService.selectAreaUnit(areaCode); | 
 |  |  | //                Map<Integer, List<ResponsibilityUnit>> collect = responsibilityUnits1.stream().collect(Collectors.groupingBy(o -> o.getUnitId())); | 
 |  |  | //                List<Integer> collect1 = collect.keySet().stream().collect(Collectors.toList()); | 
 |  |  | //                wrapper.in("unit_id",collect1); | 
 |  |  | //            }else { | 
 |  |  | //                Map<Integer, List<ResponsibilityUnit>> collect = responsibilityUnits.stream().collect(Collectors.groupingBy(o -> o.getUnitId())); | 
 |  |  | //                List<Integer> collect1 = collect.keySet().stream().collect(Collectors.toList()); | 
 |  |  | //                wrapper.in("unit_id",collect1); | 
 |  |  | //            } | 
 |  |  | //        } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         ArrayList<Map<String, Object>> rsMap = new ArrayList<>(); | 
 |  |  |         Object number1 = map.get("number"); | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public Page<AllocationPageExt> extPage(AllocationPageCond allocationPageCond) { | 
 |  |  |         List<Integer> unitAuthority = this.getUnitAuthority(SysDictTypeEnum.SYS_AMEND.value); | 
 |  |  |         List<Integer> unitList = unitResult(); | 
 |  |  |         Integer codeId =  unitAreaCode(); | 
 |  |  |         allocationPageCond.setUnitList(unitList); | 
 |  |  | 
 |  |  |                 }else { | 
 |  |  |                     it.setIsApprove(0); | 
 |  |  |                 } | 
 |  |  |                 it.setIsCode(ObjectUtils.isEmpty(unitAuthority)?"2":"1"); | 
 |  |  |             }); | 
 |  |  |         } | 
 |  |  |         return page; | 
 |  |  | 
 |  |  |         return allocationLogs; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据字典名称获取权限 | 
 |  |  |      * | 
 |  |  |      * @param code | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @Override | 
 |  |  |     public List<Integer> getUnitAuthority(String code) { | 
 |  |  |         QxUser user = UserHelper.getCurrentUser(); | 
 |  |  |         List<Integer> userList = responsibilityUnitMapper.selectCodeList(code,user.getUserId()); | 
 |  |  |         return userList; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public List<Integer>  unitResult() { | 
 |  |  |         QxUser user = UserHelper.getCurrentUser(); |