From b3cf29eb1d1afbe836d02390c140b1c8205d5f8c Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 24 Jun 2019 12:10:19 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E4=BF=AE=E5=A4=8D=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/DataScopeController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/controller/DataScopeController.java b/blade-service/blade-system/src/main/java/org/springblade/system/controller/DataScopeController.java index fabc440e..d7886f8d 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/controller/DataScopeController.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/controller/DataScopeController.java @@ -73,7 +73,7 @@ public class DataScopeController extends BladeController { * 新增 */ @PostMapping("/save") - @CacheEvict(cacheNames = {SYS_CACHE}) + @CacheEvict(cacheNames = {SYS_CACHE}, allEntries = true) @ApiOperation(value = "新增", notes = "传入dataScope", position = 4) public R save(@Valid @RequestBody DataScope dataScope) { return R.status(dataScopeService.save(dataScope)); @@ -83,7 +83,7 @@ public class DataScopeController extends BladeController { * 修改 */ @PostMapping("/update") - @CacheEvict(cacheNames = {SYS_CACHE}) + @CacheEvict(cacheNames = {SYS_CACHE}, allEntries = true) @ApiOperation(value = "修改", notes = "传入dataScope", position = 5) public R update(@Valid @RequestBody DataScope dataScope) { return R.status(dataScopeService.updateById(dataScope)); @@ -93,7 +93,7 @@ public class DataScopeController extends BladeController { * 新增或修改 */ @PostMapping("/submit") - @CacheEvict(cacheNames = {SYS_CACHE}) + @CacheEvict(cacheNames = {SYS_CACHE}, allEntries = true) @ApiOperation(value = "新增或修改", notes = "传入dataScope", position = 6) public R submit(@Valid @RequestBody DataScope dataScope) { return R.status(dataScopeService.saveOrUpdate(dataScope)); @@ -104,7 +104,7 @@ public class DataScopeController extends BladeController { * 删除 */ @PostMapping("/remove") - @CacheEvict(cacheNames = {SYS_CACHE}) + @CacheEvict(cacheNames = {SYS_CACHE}, allEntries = true) @ApiOperation(value = "逻辑删除", notes = "传入ids", position = 7) public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { return R.status(dataScopeService.deleteLogic(Func.toLongList(ids)));