同步错误
This commit is contained in:
@@ -663,20 +663,21 @@ func buildErrMsg(task tasksch.ITask) (err error) {
|
|||||||
for _, v := range failedList {
|
for _, v := range failedList {
|
||||||
for _, vv := range v.([]*partner.StoreSkuInfoWithErr) {
|
for _, vv := range v.([]*partner.StoreSkuInfoWithErr) {
|
||||||
result := &SyncErrResult{
|
result := &SyncErrResult{
|
||||||
SkuID: vv.StoreSkuInfo.SkuID,
|
SkuID: vv.StoreSkuInfo.SkuID,
|
||||||
StoreID: vv.StoreID,
|
StoreID: vv.StoreID,
|
||||||
VendorID: vv.VendoreID,
|
CategoryName: vv.CategoryName,
|
||||||
VendorSkuID: vv.StoreSkuInfo.VendorSkuID,
|
VendorID: vv.VendoreID,
|
||||||
NameID: vv.StoreSkuInfo.NameID,
|
VendorSkuID: vv.StoreSkuInfo.VendorSkuID,
|
||||||
VendorPrice: vv.StoreSkuInfo.VendorPrice,
|
NameID: vv.StoreSkuInfo.NameID,
|
||||||
SyncType: vv.SyncType,
|
VendorPrice: vv.StoreSkuInfo.VendorPrice,
|
||||||
ErrMsg: vv.ErrMsg,
|
SyncType: vv.SyncType,
|
||||||
|
ErrMsg: vv.ErrMsg,
|
||||||
}
|
}
|
||||||
resultL = append(resultL, result)
|
resultL = append(resultL, result)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err = fmt.Errorf(utils.Format4Output(resultL, true))
|
err = fmt.Errorf(utils.Format4Output(resultL, true))
|
||||||
return err
|
return makeSyncError(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *VendorSync) LoopStoresMap(ctx *jxcontext.Context, db *dao.DaoDB, taskName string, isAsync, isManageIt bool, vendorIDs []int, storeIDs []int, handler tasksch.WorkFunc, isContinueWhenError bool) (hint string, err error) {
|
func (v *VendorSync) LoopStoresMap(ctx *jxcontext.Context, db *dao.DaoDB, taskName string, isAsync, isManageIt bool, vendorIDs []int, storeIDs []int, handler tasksch.WorkFunc, isContinueWhenError bool) (hint string, err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user