| | |
| | | wrapper.eq("is_del",Constants.NOT_DELETE); |
| | | wrapper.eq("state",0); |
| | | wrapper.eq("is_invalid",0); |
| | | |
| | | //获取用户信息 |
| | | Map<String, Object> userInfo = (Map<String, Object>) TokenUtils.getUserInfo(); |
| | | Object code = userInfo.get("code"); |
| | | if (!ObjectUtils.isEmpty(code)){ |
| | | wrapper.eq("area_code",code); |
| | | List<Integer> unitList = unitResult(); |
| | | if (CollectionUtils.isNotEmpty(unitList)){ |
| | | wrapper.in("unit_id",unitList); |
| | | } |
| | | List<ResponsibilityUnit> responsibilityUnits = responsibilityUnitMapper.selectList(wrapper); |
| | | return responsibilityUnits; |