From 545f0bd4b0b2f84fb54c165bc551aa08ca9c073e Mon Sep 17 00:00:00 2001 From: 抓蛙师 <770492966@qq.com> Date: 星期三, 25 八月 2021 20:24:35 +0800 Subject: [PATCH] saveAll支持有id则更新和无id则插入 --- ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java index 3b60b4a..ff518bd 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java @@ -36,7 +36,7 @@ f.in(SysOperLog::getBusinessType, Arrays.asList(operLog.getBusinessTypes())); } }) - .eq(operLog.getStatus() != null && operLog.getStatus() > 0, + .eq(operLog.getStatus() != null, SysOperLog::getStatus, operLog.getStatus()) .like(StringUtils.isNotBlank(operLog.getOperName()), SysOperLog::getOperName, operLog.getOperName()) .apply(StringUtils.isNotEmpty(params.get("beginTime")), -- Gitblit v1.9.3