zhangxin преди 3 седмици
родител
ревизия
eda4be2203

+ 5 - 3
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/app/service/impl/OrderServiceImpl.java

@@ -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);
             }
 
         }