店铺信息getById加入缓存

This commit is contained in:
张松 2025-03-01 18:22:19 +08:00
parent 65cd160e61
commit df69bfcb40
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
private ShopExtendService shopExtendService;
@Override
@Cacheable(value = "#id")
@Cacheable(key = "#id")
public ShopInfo getById(Serializable id) {
return super.getById(id);
}