同步错误
This commit is contained in:
@@ -684,7 +684,6 @@ func buildErrMsgJson(task tasksch.ITask) (resultL []*SyncErrResult) {
|
||||
}
|
||||
if vv.StoreSkuInfo != nil {
|
||||
result.SkuID = vv.StoreSkuInfo.SkuID
|
||||
result.CategoryName = ""
|
||||
result.VendorSkuID = vv.StoreSkuInfo.VendorSkuID
|
||||
result.NameID = vv.StoreSkuInfo.NameID
|
||||
result.VendorPrice = vv.StoreSkuInfo.VendorPrice
|
||||
@@ -832,25 +831,9 @@ func WirteToExcelBySyncFailed(task tasksch.ITask) (downloadURL, fileName string,
|
||||
sheetList1 []*excel.Obj2ExcelSheetConfig
|
||||
)
|
||||
syncErrResultLock.syncErrResult = syncErrResultLock.syncErrResult[0:0]
|
||||
failedList := task.GetErrMsg()
|
||||
if len(failedList) == 0 {
|
||||
return
|
||||
}
|
||||
for _, v := range failedList {
|
||||
for _, vv := range v.([]*partner.StoreSkuInfoWithErr) {
|
||||
result := SyncErrResult{
|
||||
SkuID: vv.StoreSkuInfo.SkuID,
|
||||
CategoryName: vv.CategoryName,
|
||||
StoreID: vv.StoreID,
|
||||
VendorID: vv.VendoreID,
|
||||
VendorSkuID: vv.StoreSkuInfo.VendorSkuID,
|
||||
NameID: vv.StoreSkuInfo.NameID,
|
||||
VendorPrice: vv.StoreSkuInfo.VendorPrice,
|
||||
SyncType: vv.SyncType,
|
||||
ErrMsg: vv.ErrMsg,
|
||||
}
|
||||
syncErrResultLock.AppendData(result)
|
||||
}
|
||||
list := buildErrMsgJson(task)
|
||||
for _, v := range list {
|
||||
syncErrResultLock.AppendData(*v)
|
||||
}
|
||||
excelConf1 := &excel.Obj2ExcelSheetConfig{
|
||||
Title: "同步错误",
|
||||
|
||||
Reference in New Issue
Block a user