| | |
| | | import com.ycl.entity.user.UmsAdmin; |
| | | import com.ycl.entity.user.UmsRole; |
| | | import com.ycl.mapper.depart.UmsDepartMapper; |
| | | import com.ycl.mapper.dict.DataDictionaryMapper; |
| | | import com.ycl.mapper.dict.DataDictionary2Mapper; |
| | | import com.ycl.mapper.user.UmsAdminMapper; |
| | | import com.ycl.mapper.user.UmsRoleMapper; |
| | | import com.ycl.service.redis.RedisService; |
| | |
| | | @Resource |
| | | private UmsAdminMapper umsAdminMapper; |
| | | @Resource |
| | | private DataDictionaryMapper dataDictionaryMapper; |
| | | private DataDictionary2Mapper dataDictionary2Mapper; |
| | | @Resource |
| | | private UmsDepartMapper umsDepartMapper; |
| | | @ApiOperation("用户导入") |
| | |
| | | } |
| | | |
| | | String userType = item.getUserType(); |
| | | DataDictionary dataDictionary = dataDictionaryMapper.selectOne(new LambdaQueryWrapper<DataDictionary>().eq(DataDictionary::getName, userType)); |
| | | DataDictionary dataDictionary = dataDictionary2Mapper.selectOne(new LambdaQueryWrapper<DataDictionary>().eq(DataDictionary::getName, userType)); |
| | | if (Objects.isNull(dataDictionary)){ |
| | | throw new RuntimeException("用户类型不存在"); |
| | | }else { |