This commit is contained in:
richboo111
2023-10-08 13:59:41 +08:00
parent 9ccbe286bc
commit f12cca6b94

View File

@@ -6344,13 +6344,13 @@ func CreateDDWarehouse(vendorOrgCode string, vendorStoreID, storeID int64) error
}
warehouseID, err1 := tiktok_store.CreateWarehouse(vendorOrgCode, storeID)
if err1 != nil || warehouseID == 0 {
//errList.AddErr(fmt.Errorf("门店(%d) 创建仓库失败:%v", storeID, err1))
globals.SugarLogger.Debugf("CreateDDWarehouse hint=%v", fmt.Errorf("门店(%d) 创建仓库失败:%v", storeID, err1))
errList.AddErr(fmt.Errorf("门店(%d) 创建仓库:%v", storeID, err1))
//globals.SugarLogger.Debugf("CreateDDWarehouse hint=%v", fmt.Errorf("门店(%d) 创建仓库失败:%v", storeID, err1))
}
err1 = tiktok_store.BindStoreWarehouse(vendorOrgCode, utils.Int64ToStr(storeID), vendorStoreID)
if err1 != nil { //仓库绑定通过自定义外部ID
errList.AddErr(fmt.Errorf("门店(%d) 绑定仓库失败:%v", storeID, err1))
errList.AddErr(fmt.Errorf("门店(%d) 绑定仓库:%v", storeID, err1))
}
return errList.GetErrListAsOne()
}