店铺信息getById加入缓存
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user