|
@@ -1698,13 +1698,15 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
} catch (Exception e) {
|
|
|
log.error("百分比计算错误", e);
|
|
|
}
|
|
|
+ log.info("支付成功消息通知,门店添加明细:"+JSONObject.toJSONString(receiptPaymentDetailsInfoVo));
|
|
|
BigDecimal mdBigDecimal = priceSum.subtract(shBigDecimal).subtract(ptBigDecimal).setScale(2, RoundingMode.HALF_UP);
|
|
|
+ log.info("支付成功消息通知,金额:"+mdBigDecimal+";"+shBigDecimal+";"+ptBigDecimal);
|
|
|
ReceiptPaymentDetailsInfoVo receiptPaymentDetailsInfoVoMd = getChangeMoney(receiptPaymentDetailsInfoVo, appOrder.getOrgCode(), appOrder.getTenantId(), 2, mdBigDecimal);
|
|
|
ReceiptPaymentDetailsInfoVo receiptPaymentDetailsInfoVoSh = getChangeMoney(receiptPaymentDetailsInfoVo, sysDepart.getOrgCode(), sysDepart.getId(), 1, shBigDecimal);
|
|
|
ReceiptPaymentDetailsInfoVo receiptPaymentDetailsInfoVoPt = getChangeMoney(receiptPaymentDetailsInfoVo, byOrgCode.getOrgCode(), byOrgCode.getId(), 0, ptBigDecimal);
|
|
|
-
|
|
|
- log.info("支付成功消息通知,门店添加明细:"+JSONObject.toJSONString(receiptPaymentDetailsInfoVo));
|
|
|
- iReceiptPaymentDetailsInfoService.add(receiptPaymentDetailsInfoVo);
|
|
|
+ iReceiptPaymentDetailsInfoService.add(receiptPaymentDetailsInfoVoPt);
|
|
|
+ iReceiptPaymentDetailsInfoService.add(receiptPaymentDetailsInfoVoSh);
|
|
|
+ iReceiptPaymentDetailsInfoService.add(receiptPaymentDetailsInfoVoMd);
|
|
|
}
|
|
|
|
|
|
}
|