| | |
| | | Object unitId = userInfo.get("unitId"); |
| | | Map<String, Object> orgInfo = (Map<String, Object>) userInfo.get("organization"); |
| | | Integer orgId = (Integer) orgInfo.get("id"); |
| | | // Integer unitId= 17; |
| | | if (ObjectUtils.isEmpty(unitId)){ |
| | | return null; |
| | | } |
| | | |
| | | if (!ObjectUtils.isEmpty(map.get("unitId"))){ |
| | | wrapper.in("unit_id",map.get("unitId").toString()); |
| | | }else { |
| | |
| | | List<Integer> collect1 = collect.keySet().stream().collect(Collectors.toList()); |
| | | wrapper.in("unit_id",collect1); |
| | | } |
| | | }else { |
| | | if (ObjectUtils.isEmpty(unitId)){ |
| | | return null; |
| | | } |
| | | } |
| | | } |
| | | |