操作日志查询增加错误,关键字,同步错误返回显示平台名

This commit is contained in:
苏尹岚
2020-02-03 11:49:14 +08:00
parent daabd0ed3f
commit 4439135bbd
14 changed files with 108 additions and 67 deletions

View File

@@ -241,7 +241,7 @@ func UnselectStoreSkuListByVendorSkuIDs(storeSkuList []*partner.StoreSkuInfo, ve
return selectedStoreSkuList
}
func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID, vendorID int, syncType string) (failedList []*partner.StoreSkuInfoWithErr) {
func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID int, vendorName, syncType string) (failedList []*partner.StoreSkuInfoWithErr) {
if err != nil {
var errMsg string
if errExt, ok := err.(*utils.ErrorWithCode); ok {
@@ -254,7 +254,7 @@ func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID, ve
StoreSkuInfo: storeSkuLists[0],
ErrMsg: errMsg,
StoreID: storeID,
VendoreID: vendorID,
VendoreName: vendorName,
SyncType: syncType,
}
failedList = append(failedList, storeSkuInfoWithErr)
@@ -271,7 +271,7 @@ func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID, ve
StoreSkuInfo: storeSkuInfo,
ErrMsg: errMsg,
StoreID: storeID,
VendoreID: vendorID,
VendoreName: vendorName,
SyncType: syncType,
}
failedList = append(failedList, storeSkuInfoWithErr)
@@ -288,16 +288,16 @@ func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID, ve
StoreSkuInfo: storeSkuInfo,
ErrMsg: errMsg,
StoreID: storeID,
VendoreID: vendorID,
VendoreName: vendorName,
SyncType: syncType,
}
failedList = append(failedList, storeSkuInfoWithErr)
} else {
storeSkuInfoWithErr := &partner.StoreSkuInfoWithErr{
ErrMsg: errMsg,
StoreID: storeID,
VendoreID: vendorID,
SyncType: syncType,
ErrMsg: errMsg,
StoreID: storeID,
VendoreName: vendorName,
SyncType: syncType,
}
failedList = append(failedList, storeSkuInfoWithErr)
}