| | |
| | | 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; |
| | |
| | | public void exportUser(HttpServletResponse response) { |
| | | List<UmsUserDto1> umsUserDtos = adminService.userExp(); |
| | | String sheetName = "用户导出"; |
| | | EasyExcelUtils.export(response, sheetName, UmsUserDto1.class, umsUserDtos); |
| | | EasyExcelUtils.export1(response, sheetName, UmsUserDto1.class, umsUserDtos, "用户导出"); |
| | | } |
| | | |
| | | @Resource |
| | |
| | | @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 { |