修改
This commit is contained in:
parent
b149446170
commit
145486aec2
@ -505,13 +505,13 @@ func OrderRecordsListV2(req *bundle.OrderRecordsRequestV2) (res *bundle.OrderRec
|
|||||||
for _, sub := range record.BundleOrderValueAdd {
|
for _, sub := range record.BundleOrderValueAdd {
|
||||||
orderAddNo := sub.OrderNo
|
orderAddNo := sub.OrderNo
|
||||||
amount := float32(sub.Amount)
|
amount := float32(sub.Amount)
|
||||||
var videoNum int32
|
|
||||||
if sub.ServiceType == 1 {
|
|
||||||
videoNum = sub.Num
|
|
||||||
}
|
|
||||||
if existing, ok := addMap[orderAddNo]; ok {
|
if existing, ok := addMap[orderAddNo]; ok {
|
||||||
existing.Amount += amount
|
existing.Amount += amount
|
||||||
} else {
|
} else {
|
||||||
|
var videoNum int32
|
||||||
|
if sub.ServiceType == 1 {
|
||||||
|
videoNum = sub.Num
|
||||||
|
}
|
||||||
addMap[orderAddNo] = &bundle.OrderAddBundleRecordInfo{
|
addMap[orderAddNo] = &bundle.OrderAddBundleRecordInfo{
|
||||||
OrderAddNo: orderAddNo,
|
OrderAddNo: orderAddNo,
|
||||||
Amount: amount,
|
Amount: amount,
|
||||||
|
Loading…
Reference in New Issue
Block a user