Browse Source

【更新】优化用户选择器

pull/87/head
xuyuxiang 2 years ago
parent
commit
33bbcd810a
  1. 4
      snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/impl/SysUserServiceImpl.java

4
snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/impl/SysUserServiceImpl.java

@ -986,7 +986,6 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
int successCount = 0;
int errorCount = 0;
JSONArray errorDetail = JSONUtil.createArray();
byte[] bytes = file.getBytes();
// 创建临时文件
File tempFile = FileUtil.writeBytes(file.getBytes(), FileUtil.file(FileUtil.getTmpDir() +
FileUtil.FILE_SEPARATOR + "userImportTemplate.xlsx"));
@ -1400,7 +1399,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
}
// 只查询部分字段
List<SysUser> userList = this.list(new LambdaQueryWrapper<SysUser>().select(SysUser::getId, SysUser::getOrgId,
SysUser::getAccount, SysUser::getName, SysUser::getSortCode).orderByAsc(SysUser::getSortCode));
SysUser::getId, SysUser::getPositionId, SysUser::getAccount, SysUser::getName, SysUser::getSortCode)
.orderByAsc(SysUser::getSortCode));
if(ObjectUtil.isNotEmpty(userList)) {
// 更新到缓存
commonCacheOperator.put(USER_CACHE_ALL_KEY, userList);

Loading…
Cancel
Save