1
This commit is contained in:
@@ -433,10 +433,10 @@ func updateStoreSku(db *dao.DaoDB, vendorID int, storeSkuList []*dao.StoreSkuSyn
|
|||||||
} else {
|
} else {
|
||||||
updateItemList := make([]*dao.KVUpdateItem, len(storeSkuList))
|
updateItemList := make([]*dao.KVUpdateItem, len(storeSkuList))
|
||||||
for k, v := range storeSkuList {
|
for k, v := range storeSkuList {
|
||||||
globals.SugarLogger.Debugf("======skusyncStatus %s", utils.Format4Output(v, false))
|
//globals.SugarLogger.Debugf("======skusyncStatus %s", utils.Format4Output(v, false))
|
||||||
updateItemList[k] = sku2Update(vendorID, v, syncStatus)
|
updateItemList[k] = sku2Update(vendorID, v, syncStatus)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("========updateItemList=== %s", utils.Format4Output(updateItemList, false))
|
//globals.SugarLogger.Debugf("========updateItemList=== %s", utils.Format4Output(updateItemList, false))
|
||||||
num, err = dao.BatchUpdateEntityByKV(db, updateItemList)
|
num, err = dao.BatchUpdateEntityByKV(db, updateItemList)
|
||||||
if vendorID == model.VendorIDYB {
|
if vendorID == model.VendorIDYB {
|
||||||
err = updateYbOhterSku(db, storeSkuList)
|
err = updateYbOhterSku(db, storeSkuList)
|
||||||
|
|||||||
Reference in New Issue
Block a user