longz
2026-08-11 2a3c3cdbf2398695d61633e072f98ee2757e9e27
backend/src/main/java/com/sinata/appointment/service/StaffManageApplicationService.java
@@ -99,9 +99,9 @@
        Path dir = resolveAvatarUploadDir();
        String fileName = UUID.randomUUID().toString().replace("-", "") + ext;
        Path target = dir.resolve(fileName);
        try {
        try (InputStream in = file.getInputStream()) {
            Files.createDirectories(dir);
            Files.copy(file.getInputStream(), target, StandardCopyOption.REPLACE_EXISTING);
            Files.copy(in, target, StandardCopyOption.REPLACE_EXISTING);
        } catch (IOException ex) {
            throw new BizException(BizErrorCode.AUTH_FORBIDDEN, "头像上传失败");
        }
@@ -156,7 +156,7 @@
                q.notIn(MpUser::getId, inGroup);
            }
        }
        q.orderByDesc(MpUser::getCreateTime);
        q.orderByAsc(MpUser::getNickName).orderByAsc(MpUser::getId);
        Page<MpUser> p = mpUserMapper.selectPage(new Page<>(page, size), q);
        Set<Long> deptIds = new HashSet<>();
        Set<Long> userIds = new HashSet<>();