店铺信息getById加入缓存
This commit is contained in:
parent
65cd160e61
commit
df69bfcb40
|
|
@ -50,7 +50,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
|
||||||
private ShopExtendService shopExtendService;
|
private ShopExtendService shopExtendService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Cacheable(value = "#id")
|
@Cacheable(key = "#id")
|
||||||
public ShopInfo getById(Serializable id) {
|
public ShopInfo getById(Serializable id) {
|
||||||
return super.getById(id);
|
return super.getById(id);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue