This commit is contained in:
richboo111
2023-01-11 10:13:42 +08:00
parent 2789b854d5
commit c552483356

View File

@@ -433,10 +433,10 @@ func updateStoreSku(db *dao.DaoDB, vendorID int, storeSkuList []*dao.StoreSkuSyn
} else {
updateItemList := make([]*dao.KVUpdateItem, len(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)
}
globals.SugarLogger.Debugf("========updateItemList=== %s", utils.Format4Output(updateItemList, false))
//globals.SugarLogger.Debugf("========updateItemList=== %s", utils.Format4Output(updateItemList, false))
num, err = dao.BatchUpdateEntityByKV(db, updateItemList)
if vendorID == model.VendorIDYB {
err = updateYbOhterSku(db, storeSkuList)