| | |
| | | package org.jeecg.modules.system.service.impl; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | } |
| | | return stringList; |
| | | } |
| | | |
| | | /** |
| | | * 获取用户已分配的部门列表 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Map<String, MdcProduction> getUserAssignedDepart(String userId){ |
| | | if(StrUtil.isEmpty(userId)) |
| | | return null; |
| | | List<MdcProduction> userPermDepart = this.baseMapper.findAllProductionId(userId); |
| | | if(userPermDepart == null || userPermDepart.isEmpty()) |
| | | return null; |
| | | Map<String, MdcProduction> map = new HashMap<>(); |
| | | userPermDepart.forEach(item -> { |
| | | map.put(item.getId(), item); |
| | | }); |
| | | return map; |
| | | } |
| | | } |