银豹修改价格尝试

This commit is contained in:
苏尹岚
2020-03-27 15:07:06 +08:00
parent 46aab83aa6
commit 21ff04a78d
3 changed files with 5 additions and 4 deletions

View File

@@ -232,6 +232,7 @@ func storeSkuSyncInfo2Bare(inSku *dao.StoreSkuSyncInfo) (outSku *partner.StoreSk
Status: inSku.MergedStatus,
VendorPrice: inSku.VendorPrice,
Seq: inSku.Seq,
JxPrice: inSku.Price,
}
if !isStoreSkuSyncNeedDelete(inSku) {
outSku.Stock = model.MaxStoreSkuStockQty
@@ -528,8 +529,8 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
priceList = priceList[:]
priceList = rList2
for _, v := range priceList {
price, _ := GetSkuNamePrice(db, v.SkuID, int64(v.JxPrice))
v.JxPrice = int(price)
price, _ := GetSkuNamePrice(db, v.SkuID, v.JxPrice)
v.JxPrice = price
}
}
}