订单结算价测试

This commit is contained in:
苏尹岚
2020-05-14 09:22:59 +08:00
parent e56231a2d8
commit f6c7275d4f
5 changed files with 18 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
package jxutils
import (
"fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/model"
)
@@ -19,9 +23,11 @@ func NewActStoreSkuMap(actStoreSkuList []*model.ActStoreSku2, isActPrice bool) (
}
if (isActPrice && v.ActualActPrice > 0 && (actStoreSkuMap[index][v.VendorID] == nil || actStoreSkuMap[index][v.VendorID].ActualActPrice > v.ActualActPrice)) ||
(!isActPrice && v.EarningPrice > 0 && (actStoreSkuMap[index][v.VendorID] == nil || actStoreSkuMap[index][v.VendorID].EarningPrice > v.EarningPrice)) {
fmt.Println("test222222222222222222222222222222222", *v)
actStoreSkuMap[index][v.VendorID] = v
}
}
fmt.Println("test11111111111111111111111111111111", utils.Format4Output(actStoreSkuMap, false))
actMap.actStoreSkuMap = actStoreSkuMap
return actMap
}