| | |
| | | public Map<String, Object> selectUnitView(Map<String, Object> map) { |
| | | QueryWrapper<Allocation> wrapper = new QueryWrapper<>(); |
| | | //获取用户信息 |
| | | |
| | | List<Integer> list = this.unitResult(); |
| | | if (!ObjectUtils.isEmpty(map.get("unitId"))){ |
| | | wrapper.in("unit_id",map.get("unitId").toString()); |
| | | String unitId = map.get("unitId").toString(); |
| | | // unitId.split(","); |
| | | List<String> list1 = Arrays.asList(unitId.split(",")); |
| | | wrapper.in("unit_id",list1); |
| | | }else { |
| | | if (!ObjectUtils.isEmpty(list)){ |
| | | Integer integer = list.get(0); |
| | |
| | | //获取用户信息 |
| | | List<Integer> list = this.unitResult(); |
| | | if (!ObjectUtils.isEmpty(map.get("unitId"))){ |
| | | wrapper.in("unit_id",map.get("unitId").toString()); |
| | | String unitId = map.get("unitId").toString(); |
| | | // unitId.split(","); |
| | | List<String> list1 = Arrays.asList(unitId.split(",")); |
| | | wrapper.in("unit_id",list1); |
| | | // wrapper.in("unit_id",map.get("unitId").toString()); |
| | | }else { |
| | | if (!ObjectUtils.isEmpty(list)){ |
| | | Integer integer = list.get(0); |