店铺信息获取不到修复
This commit is contained in:
@@ -120,7 +120,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ShopInfo detail(Integer id) {
|
public ShopInfo detail(Integer id) {
|
||||||
ShopInfo shopInfo = queryChain().eq(ShopInfo::getId, id).one();
|
ShopInfo shopInfo = queryChain().eq(ShopInfo::getId, id == null ? StpKit.USER.getShopId() : id).one();
|
||||||
if (shopInfo == null) {
|
if (shopInfo == null) {
|
||||||
throw new ApiNotPrintException("店铺信息不存在");
|
throw new ApiNotPrintException("店铺信息不存在");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user