remove unused import
This commit is contained in:
@@ -61,13 +61,20 @@ public class WeChatPayController {
|
||||
@Lazy
|
||||
private WechatPayConfig wechatPayConfig;
|
||||
|
||||
@Autowired private BookBuyConfigService bookBuyConfigService;
|
||||
@Autowired
|
||||
private BookBuyConfigService bookBuyConfigService;
|
||||
|
||||
@Autowired private PayWechatOrderService payWechatOrderService;
|
||||
@Autowired
|
||||
private PayWechatOrderService payWechatOrderService;
|
||||
|
||||
@Autowired private PayPaymentOrderService payPaymentOrderService;
|
||||
@Autowired
|
||||
private PayPaymentOrderService payPaymentOrderService;
|
||||
|
||||
@Autowired private TransactionDetailsService transactionDetailsService;
|
||||
@Autowired
|
||||
private TransactionDetailsService transactionDetailsService;
|
||||
|
||||
@Autowired
|
||||
private BuyOrderDetailService buyOrderDetailService;
|
||||
|
||||
@Autowired
|
||||
private CloseableHttpClient wxPayNoSignClient; //无需应答签名
|
||||
@@ -85,11 +92,6 @@ public class WeChatPayController {
|
||||
// 微信下单Url
|
||||
public static final String payUrl = "https://api.mch.weixin.qq.com/v3/pay/transactions/app";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* App 微信下单
|
||||
*
|
||||
@@ -263,7 +265,18 @@ public class WeChatPayController {
|
||||
if("order".equals(order.getOrderType())){
|
||||
BuyOrderEntity orderEntity = buyOrderService.getBaseMapper().selectOne(new QueryWrapper<BuyOrderEntity>().eq("order_sn", wechatEntity.getOrderSn()));
|
||||
BigDecimal realMoney = orderEntity.getRealMoney();
|
||||
|
||||
//更新 订单 记录
|
||||
// 1. 根据订单 ID 查询订单详情
|
||||
// 2. 由订单详情获取商品信息
|
||||
// 3. 查询商品信息得到 book_id
|
||||
// 4. 查询用户的所有 book_id
|
||||
// 5. 取差集
|
||||
/*
|
||||
list1.removeAll(list2)
|
||||
*/
|
||||
// 6. 为用户添加书籍
|
||||
|
||||
if (wechatEntity.getTotalAmount().compareTo(realMoney) == 0) {
|
||||
buyOrderService.updateOrderStatus(Integer.valueOf(order.getUserId()),order.getOrderSn(),"0");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user