This commit is contained in:
邹宗楠
2025-02-26 16:45:33 +08:00
parent b83af02a97
commit 7ca565a0a5
2 changed files with 2 additions and 2 deletions

View File

@@ -1543,8 +1543,10 @@ func (c *OrderManager) AmendMissingOrders(ctx *jxcontext.Context, vendorIDs []in
task2 := tasksch.NewParallelTask("AmendMissingOrders GetOrders", tasksch.NewParallelConfig().SetIsContinueWhenError(isContinueWhenError), ctx,
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
pair := batchItemList[0].(*tOrderVendorPair)
globals.SugarLogger.Debugf("---------pair := %s", utils.Format4Output(pair, false))
if handler := partner.GetPurchaseOrderHandlerFromVendorID(pair.VendorID); handler != nil {
order, err2 := handler.GetOrder(pair.VendorOrgCode, pair.VendorOrderID, pair.VendorStoreID)
globals.SugarLogger.Debugf("---------order := %s", utils.Format4Output(order, false))
if err = err2; err == nil {
storeDetail, err := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), order.VendorStoreID, order.VendorID, order.VendorOrgCode)
if err == nil && storeDetail != nil {

View File

@@ -1014,8 +1014,6 @@ func UpdateSkuName(ctx *jxcontext.Context, nameID int, payload map[string]interf
panic(r)
}
}()
globals.SugarLogger.Debugf("----------ployd2 := %s", utils.Format4Output(payload, false))
globals.SugarLogger.Debugf("----------valid := %s", utils.Format4Output(valid, false))
if num, err = dao.UpdateEntityLogically(db, skuName, valid, userName, nil); err != nil {
dao.Rollback(db, txDB)
return 0, err