店铺信息获取不到修复

This commit is contained in:
张松
2025-02-20 13:47:11 +08:00
parent 00a92905b9
commit c4f0c9e6d4

View File

@@ -120,7 +120,7 @@ public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo> i
@Override
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) {
throw new ApiNotPrintException("店铺信息不存在");
}