修改订单结算信息,平台配送是未扣除配送费
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
func TestBillDetail(t *testing.T) {
|
||||
a.GetSettleBillDetailV3(&order_getSettleBillDetailV3_request.OrderGetSettleBillDetailV3Param{
|
||||
Size: 10,
|
||||
OrderId: "5006155889577954309",
|
||||
OrderId: "5035210591285239695",
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -25,9 +25,11 @@ func (a *API) GetSettleBillDetailV3(param *order_getSettleBillDetailV3_request.O
|
||||
}
|
||||
|
||||
var totalShopMoney int64 = 0
|
||||
var postAmount int64 = 0
|
||||
for _, v := range result.Data.Data {
|
||||
totalShopMoney += v.SettleAmount
|
||||
postAmount += v.PostAmount
|
||||
}
|
||||
|
||||
return totalShopMoney, result.Data.NextStartIndex, nil
|
||||
return totalShopMoney - postAmount, result.Data.NextStartIndex, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user