From ae494ea8ddc656b212f275c01070d6f9ac9d798c Mon Sep 17 00:00:00 2001 From: smallchill Date: Fri, 20 Dec 2019 14:53:44 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20oss=E4=BF=AE=E6=94=B9=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=88=99=E5=88=B7=E6=96=B0=EF=BC=8C=E6=97=A0=E9=9C=80?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=90=AF=E7=94=A8=E6=8C=89=E9=92=AE=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springblade/resource/controller/OssController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java index e858567d..e8f06023 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java @@ -99,6 +99,7 @@ public class OssController extends BladeController { @ApiOperationSupport(order = 4) @ApiOperation(value = "新增", notes = "传入oss") public R save(@Valid @RequestBody Oss oss) { + CacheUtil.evict(SYS_CACHE, OssBuilder.OSS_CODE, SecureUtil.getTenantId()); return R.status(ossService.save(oss)); } @@ -109,6 +110,7 @@ public class OssController extends BladeController { @ApiOperationSupport(order = 5) @ApiOperation(value = "修改", notes = "传入oss") public R update(@Valid @RequestBody Oss oss) { + CacheUtil.evict(SYS_CACHE, OssBuilder.OSS_CODE, SecureUtil.getTenantId()); return R.status(ossService.updateById(oss)); } @@ -119,6 +121,7 @@ public class OssController extends BladeController { @ApiOperationSupport(order = 6) @ApiOperation(value = "新增或修改", notes = "传入oss") public R submit(@Valid @RequestBody Oss oss) { + CacheUtil.evict(SYS_CACHE, OssBuilder.OSS_CODE, SecureUtil.getTenantId()); return R.status(ossService.saveOrUpdate(oss)); } @@ -130,6 +133,7 @@ public class OssController extends BladeController { @ApiOperationSupport(order = 7) @ApiOperation(value = "逻辑删除", notes = "传入ids") public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { + CacheUtil.evict(SYS_CACHE, OssBuilder.OSS_CODE, SecureUtil.getTenantId()); return R.status(ossService.deleteLogic(Func.toLongList(ids))); }