From 8437664a0de101a22e54fd1142a0e592031531b2 Mon Sep 17 00:00:00 2001 From: smallchill Date: Thu, 5 Dec 2019 16:51:05 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20oss=E8=8E=B7=E5=8F=96=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=A4=9A=E7=A7=9F=E6=88=B7=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/springblade/resource/builder/OssBuilder.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/OssBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/OssBuilder.java index b511f37e..6fe3c57c 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/OssBuilder.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/OssBuilder.java @@ -106,7 +106,11 @@ public class OssBuilder { */ public Oss getOss(String tenantId) { return CacheUtil.get(SYS_CACHE, OSS_CODE, tenantId, () -> { - Oss o = ossMapper.selectOne(Wrappers.query().lambda().eq(Oss::getStatus, OssStatusEnum.ENABLE.getNum())); + Oss o = ossMapper.selectOne( + Wrappers.query().lambda() + .eq(Oss::getStatus, OssStatusEnum.ENABLE.getNum()) + .eq(Oss::getTenantId, tenantId) + ); // 若为空则调用默认配置 if ((Func.isEmpty(o))) { Oss defaultOss = new Oss();