更新门店库存测试

This commit is contained in:
苏尹岚
2020-05-26 15:36:19 +08:00
parent 2dba8fe5c7
commit e7e0b8c37a

View File

@@ -393,6 +393,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
skus, err = dao.GetFullStoreSkus(db, vendorID, storeID)
} else {
skus, err = dao.GetStoreSkus(db, vendorID, storeID, skuIDs)
fmt.Println("testGetStoreSkus", utils.Format4Output(skus, false))
}
if err != nil || len(skus) == 0 {
return err
@@ -605,6 +606,8 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
updateList = updateList[:]
updateList = rList2
}
fmt.Println("testonlineList", utils.Format4Output(onlineList, false))
fmt.Println("testofflineList", utils.Format4Output(offlineList, false))
}
task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx,
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {