fix: 更新字典清除缓存 key入参错误

This commit is contained in:
MuskLai 2023-01-16 16:10:53 +08:00
parent c79a2588e4
commit f1f18a1f03

View File

@ -67,7 +67,7 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
* @return
*/
@Override
@CacheEvict(value = CacheConstants.DICT_DETAILS, key = "#dict.type")
@CacheEvict(value = CacheConstants.DICT_DETAILS, key = "#dict.dictKey")
public void updateDict(SysDict dict) {
SysDict sysDict = this.getById(dict.getId());
// 系统内置