【add】数据字典模块编辑和添加后刷新缓存

This commit is contained in:
mzc5649
2021-04-08 09:13:50 +08:00
parent 2bc988c1f9
commit 7b127d618b
@@ -334,6 +334,8 @@ public class SysDictController {
sysDict.setDelFlag(CommonConstant.DEL_FLAG_0);
sysDictService.save(sysDict);
result.success("保存成功!");
//添加成功后需要刷新缓存
sysDictService.refreshCache();
} catch (Exception e) {
log.error(e.getMessage(),e);
result.error500("操作失败");
@@ -359,6 +361,8 @@ public class SysDictController {
boolean ok = sysDictService.updateById(sysDict);
if(ok) {
result.success("编辑成功!");
//编辑成功后需要刷新缓存
sysDictService.refreshCache();
}
}
return result;