update 优化 业务缓存代码

This commit is contained in:
疯狂的狮子li
2022-08-15 10:55:43 +08:00
parent d351c59b38
commit 9f2fe90e50
2 changed files with 7 additions and 3 deletions

View File

@ -112,6 +112,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService, DictService
* @param dictType 字典类型
* @return 字典类型
*/
@Cacheable(cacheNames = CacheNames.SYS_DICT, key = "#dictType")
@Override
public SysDictType selectDictTypeByType(String dictType) {
return baseMapper.selectById(new LambdaQueryWrapper<SysDictType>().eq(SysDictType::getDictType, dictType));