From 33bbcd810abf51b6c3214cab634d7c6fd3ccd662 Mon Sep 17 00:00:00 2001 From: xuyuxiang Date: Wed, 8 Mar 2023 10:30:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=94=A8=E6=88=B7=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/modular/user/service/impl/SysUserServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/impl/SysUserServiceImpl.java b/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/impl/SysUserServiceImpl.java index 7ab9af9f..a70e817d 100644 --- a/snowy-plugin/snowy-plugin-sys/src/main/java/vip/xiaonuo/sys/modular/user/service/impl/SysUserServiceImpl.java +++ b/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 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 impl } // 只查询部分字段 List userList = this.list(new LambdaQueryWrapper().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);