From 4c75b5b514821ddf4337c49aa4ef75dcd6900080 Mon Sep 17 00:00:00 2001 From: zlyx <1242874891@qq.com> Date: 星期五, 20 一月 2023 16:13:19 +0800 Subject: [PATCH] update 更新 sql 脚本: 更新 create_by, update_by 字段类型 (保存用户id), 新增 create_dept 字段 (保存创建部门id) ; --- ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/StreamUtils.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/StreamUtils.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/StreamUtils.java index b11fa51..b851d5c 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/StreamUtils.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/utils/StreamUtils.java @@ -30,7 +30,7 @@ if (CollUtil.isEmpty(collection)) { return CollUtil.newArrayList(); } - return collection.stream().filter(function).collect(Collectors.toList()); + return collection.stream().filter(function).toList(); } /** @@ -70,7 +70,7 @@ if (CollUtil.isEmpty(collection)) { return CollUtil.newArrayList(); } - return collection.stream().sorted(comparing).collect(Collectors.toList()); + return collection.stream().sorted(comparing).toList(); } /** @@ -188,7 +188,7 @@ .stream() .map(function) .filter(Objects::nonNull) - .collect(Collectors.toList()); + .toList(); } /** -- Gitblit v1.9.3