dengbiao 4 months ago
parent
commit
21a92e0136
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      consume/canal_o2o_pay_order_for_numerical_statement_consume.go

+ 2
- 2
consume/canal_o2o_pay_order_for_numerical_statement_consume.go View File

@@ -163,8 +163,8 @@ func handleCanalO2oPayOrderForNumericalStatementTable(msg []byte) error {
return errors.New("未支付不统计") return errors.New("未支付不统计")
} }
if item.State == "1" || item.State == "4" { if item.State == "1" || item.State == "4" {
paymentTotal = utils.Float64ToStr(utils.StrToFloat64(paymentTotal) + utils.StrToFloat64(item.PayAmount)) //付款金额
estimatedCommission = utils.Float64ToStr(utils.StrToFloat64(estimatedCommission) + utils.StrToFloat64(item.EstimateCommission)) //预估佣金(元)
paymentTotal = utils.Float64ToStr(utils.StrToFloat64(paymentTotal) + utils.StrToFloat64(item.PayAmount)) //付款金额
estimatedCommission = utils.Float64ToStrPrec4(utils.StrToFloat64(estimatedCommission) + utils.StrToFloat64(item.EstimateCommission)) //预估佣金(元)


estimatedCommissionValue, _ := decimal.NewFromString(estimatedCommission) estimatedCommissionValue, _ := decimal.NewFromString(estimatedCommission)
orderCountValue := decimal.NewFromInt(int64(orderCount)) orderCountValue := decimal.NewFromInt(int64(orderCount))


Loading…
Cancel
Save