查询套餐详情 增加 shopId 字段

This commit is contained in:
gong
2025-12-20 09:20:36 +08:00
parent d363c580bd
commit c33f169614
3 changed files with 6 additions and 5 deletions

View File

@@ -203,17 +203,18 @@ public class PpPackageServiceImpl extends ServiceImpl<PpPackageMapper, PpPackage
}
@Override
public PpPackageVO getPackageDetail(Long id) {
public PpPackageVO getPackageDetail(Long id, Long shopId) {
PpPackage ppPackage = getPackageById(id);
PpPackageVO packageVO = convertPackageToVo(ppPackage);
ShopInfo shopInfo = shopInfoService.getById(ppPackage.getShopId());
ShopInfo shopInfo = shopInfoService.getById(shopId);
if (shopInfo != null) {
packageVO.setShopName(shopInfo.getShopName());
packageVO.setShopAddress(shopInfo.getAddress());
packageVO.setShopLogo(shopInfo.getLogo());
}
packageVO.setShopId(shopId);
return packageVO;
}