银豹修改价格尝试
This commit is contained in:
@@ -528,10 +528,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
||||
priceList = priceList[:]
|
||||
priceList = rList2
|
||||
for _, v := range priceList {
|
||||
price, _ := GetSkuNamePrice(db, v.SkuID, int64(v.Price))
|
||||
v.Price = int(price)
|
||||
price, _ := GetSkuNamePrice(db, v.SkuID, int64(v.JxPrice))
|
||||
v.JxPrice = int(price)
|
||||
}
|
||||
fmt.Println(utils.Format4Output(priceList, false))
|
||||
}
|
||||
}
|
||||
task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx,
|
||||
|
||||
Reference in New Issue
Block a user