测试刷新历史结算价

This commit is contained in:
苏尹岚
2020-05-18 10:49:21 +08:00
parent dc4da12e73
commit bbc9d030ba
2 changed files with 3 additions and 2 deletions

View File

@@ -434,6 +434,9 @@ func updateSingleOrderEarningPrice(order *model.GoodsOrder, db *dao.DaoDB) {
for _, v := range order.Skus {
if skuID := jxutils.GetSkuIDFromOrderSku(v); skuID > 0 {
if actStoreSku := actStoreSkuMap.GetActStoreSku(jxStoreID, skuID, order.VendorID); actStoreSku != nil {
if skuID == 30611 {
fmt.Println("testGetActStoreSku", utils.Format4Output(actStoreSku, false))
}
v.EarningPrice = actStoreSku.EarningPrice
if true { //v.StoreSubName != "" { // 之前这里为什么要加判断?
v.StoreSubID = actStoreSku.ActID

View File

@@ -413,8 +413,6 @@ func GetEffectiveActStoreSkuInfo(db *DaoDB, actID int, vendorIDs []int, actType
if globals.IsStoreSkuAct {
sql += " AND t1.is_special = 0"
}
fmt.Println(sql)
fmt.Println(sqlParams)
err = GetRows(db, &actStoreSkuList, sql, sqlParams...)
return actStoreSkuList, err
}