|
@@ -29,9 +29,16 @@ import com.ylx.common.core.domain.R;
|
|
|
import com.ylx.massage.domain.TRecharge;
|
|
import com.ylx.massage.domain.TRecharge;
|
|
|
import com.ylx.massage.enums.BillTypeEnum;
|
|
import com.ylx.massage.enums.BillTypeEnum;
|
|
|
import com.ylx.massage.enums.PayTypeEnum;
|
|
import com.ylx.massage.enums.PayTypeEnum;
|
|
|
|
|
+import com.ylx.massage.domain.ProductOrderInfo;
|
|
|
|
|
+import com.ylx.massage.domain.TConsumptionLog;
|
|
|
|
|
+import com.ylx.massage.domain.TWxUser;
|
|
|
|
|
+import com.ylx.massage.enums.BillTypeEnum;
|
|
|
|
|
+import com.ylx.massage.enums.ProductOrderStatusEnum;
|
|
|
|
|
+import com.ylx.massage.service.IProductOrderInfoService;
|
|
|
import com.ylx.massage.service.RefundVoucherService;
|
|
import com.ylx.massage.service.RefundVoucherService;
|
|
|
import com.ylx.massage.service.TOrderService;
|
|
import com.ylx.massage.service.TOrderService;
|
|
|
import com.ylx.massage.service.TRechargeService;
|
|
import com.ylx.massage.service.TRechargeService;
|
|
|
|
|
+import com.ylx.massage.service.TWxUserService;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -73,6 +80,12 @@ public class PayController {
|
|
|
@Resource
|
|
@Resource
|
|
|
private RefundVoucherService refundVoucherService;
|
|
private RefundVoucherService refundVoucherService;
|
|
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private IProductOrderInfoService productOrderInfoService;
|
|
|
|
|
+
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private TWxUserService wxUserService;
|
|
|
|
|
+
|
|
|
// @Resource
|
|
// @Resource
|
|
|
// private JsapiServiceExtension service;
|
|
// private JsapiServiceExtension service;
|
|
|
String serialNo;
|
|
String serialNo;
|
|
@@ -261,8 +274,11 @@ public class PayController {
|
|
|
// 服务订单支付成功
|
|
// 服务订单支付成功
|
|
|
orderService.payNotifyOrder(jsonObject.get("out_trade_no").toString());
|
|
orderService.payNotifyOrder(jsonObject.get("out_trade_no").toString());
|
|
|
} else if (jsonObject.get("attach").equals(PayTypeEnum.WX_PAY.getCode().toString())) {
|
|
} else if (jsonObject.get("attach").equals(PayTypeEnum.WX_PAY.getCode().toString())) {
|
|
|
- //商品订单支付成功
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 商品订单支付成功
|
|
|
|
|
+ String productOrderNo = jsonObject.get("out_trade_no").toString();
|
|
|
|
|
+ log.info("商品订单支付回调开始处理,订单号:{}", productOrderNo);
|
|
|
|
|
+ productOrderInfoService.handleWxPayCallback(productOrderNo);
|
|
|
|
|
+ log.info("商品订单支付回调处理完成,订单号:{}", productOrderNo);
|
|
|
} else {
|
|
} else {
|
|
|
TRecharge outTradeNo = rechargeService.increaseAmount(jsonObject.get("out_trade_no").toString());
|
|
TRecharge outTradeNo = rechargeService.increaseAmount(jsonObject.get("out_trade_no").toString());
|
|
|
}
|
|
}
|