alipay回调,日志配置文件

This commit is contained in:
wangjinlei
2023-12-11 14:37:26 +08:00
parent 1243d49c50
commit 3c9b701553
3 changed files with 9 additions and 8 deletions

View File

@@ -189,12 +189,8 @@ public class AliPayServiceImpl implements AliPayService {
if ("order".equals(subject)) {
BuyOrder orderEntity = buyOrderService.getBaseMapper().selectOne(new QueryWrapper<BuyOrder>().eq("order_sn", oldPayZfbOrderEntity.getRelevanceoid()));
BigDecimal realMoney = orderEntity.getRealMoney();
BigDecimal bigDecimal = new BigDecimal(oldPayZfbOrderEntity.getBuyerPayAmount());
//更新 订单 记录
if (bigDecimal.compareTo(realMoney) == 0) {
buyOrderService.updateOrderStatus(Integer.valueOf(customerid),oldPayZfbOrderEntity.getRelevanceoid(),"0");
}
buyOrderService.updateOrderStatus(Integer.valueOf(customerid),oldPayZfbOrderEntity.getRelevanceoid(),"0");
/* 记录用户购买的书籍 */
// 查询订单的所有 book_id