|
@@ -11,6 +11,7 @@ import com.zhongshu.payment.client.model.order.v2.*;
|
|
|
import com.zhongshu.payment.client.service.v2.OrderService2;
|
|
|
import com.zhongshu.payment.client.service.v2.PaymentService2;
|
|
|
import com.zhongshu.payment.client.type.*;
|
|
|
+import com.zswl.cloud.shop.client.service.CouponInfoLogService;
|
|
|
import com.zswl.cloud.shop.client.service.ShopService;
|
|
|
import com.zswl.cloud.shop.client.vo.life.AccountDetailVo;
|
|
|
import com.zswl.cloud.shop.client.vo.life.SharePlatformVo;
|
|
@@ -49,6 +50,10 @@ public class Video2ServiceImpl implements Video2Service {
|
|
|
OrderService2 orderService2;
|
|
|
@Autowired
|
|
|
private PaymentService2 paymentService2;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ CouponInfoLogService couponInfoLogService;
|
|
|
+
|
|
|
@Value("${video2.notifyUrl}")
|
|
|
private String notifyUrl;
|
|
|
|
|
@@ -147,6 +152,7 @@ public class Video2ServiceImpl implements Video2Service {
|
|
|
if (goodsResultModel.getPayAmount().equals(BigDecimal.ZERO)) {
|
|
|
updateGoodsModel.setGoodsState(OrderType.CLOSE);
|
|
|
} else {
|
|
|
+ couponInfoLogService.rollback(notifyOrderReq.getOutTradeNo());
|
|
|
ApplicantRefundParam2Model applicantRefundParam2Model = new ApplicantRefundParam2Model();
|
|
|
applicantRefundParam2Model.setId(goodsResultModel.getId());
|
|
|
applicantRefundParam2Model.setRemark("充值失败退款");
|