fix: 优惠券返回店铺id

This commit is contained in:
张松
2024-11-09 09:46:21 +08:00
parent e18ce72b8b
commit e9161dbda9

View File

@@ -123,6 +123,7 @@ public class TbShopCouponServiceImpl implements TbShopCouponService {
@Override
public Result find(CouponDto param) {
if (param.getOrderId() != null) {
TbShopUser tbShopUser = shopUserMapper.selectByUserIdAndShopId(param.getUserId().toString(), param.getShopId().toString());
TbOrderInfo tbOrderInfo = orderInfoMapper.selectByPrimaryKey(param.getOrderId());
List<TbOrderDetail> tbOrderDetails = orderDetailMapper.selectAllByOrderId(param.getOrderId());