fix: 优惠券查询修改

This commit is contained in:
2024-11-04 13:56:19 +08:00
parent 062a0cc2f4
commit 9b1f802867

View File

@@ -380,6 +380,10 @@ public class TbShopCouponServiceImpl extends ServiceImpl<TbShopCouponMapper, TbS
throw new BadRequestException("订单信息不存在");
}
if (memberId == null && orderInfo.getMemberId() == null) {
throw new BadRequestException("请先选择对应的会员信息");
}
if (memberId == null) {
memberId = Integer.valueOf(orderInfo.getMemberId());
}