From e53df61baab56558e54483180408e85d24e11376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 7 Jan 2020 18:02:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=94=99=E8=AF=AF=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync.go | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 1b15dd9ed..ca75ec2bd 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -21,14 +21,15 @@ import ( ) type SyncErrResult struct { - SkuID int `json:"商品ID"` - StoreID int `json:"门店ID"` - VendorID int `json:"平台ID"` - VendorSkuID string `json:"平台商品ID"` - NameID int `json:"商品nameID"` - VendorPrice int64 `json:"平台价"` - SyncType string `json:"同步类型"` - ErrMsg string `json:"错误信息"` + SkuID int `json:"商品ID"` + CategoryName string `json:"分类名"` + StoreID int `json:"门店ID"` + VendorID int `json:"平台ID"` + VendorSkuID string `json:"平台商品ID"` + NameID int `json:"商品nameID"` + VendorPrice int64 `json:"平台价"` + SyncType string `json:"同步类型"` + ErrMsg string `json:"错误信息"` } type SyncErrResultLock struct { @@ -68,6 +69,7 @@ var ( ErrEntityNotExist = errors.New("找不到相应实体") SyncErrResultTitle = []string{ "商品ID", + "分类名", "门店ID", "平台ID", "平台商品ID", @@ -820,14 +822,15 @@ func WirteToExcelBySyncFailed(task tasksch.ITask, ctx *jxcontext.Context) (err e for _, v := range failedList { for _, vv := range v.([]*partner.StoreSkuInfoWithErr) { result := SyncErrResult{ - SkuID: vv.StoreSkuInfo.SkuID, - StoreID: vv.StoreID, - VendorID: vv.VendoreID, - VendorSkuID: vv.StoreSkuInfo.VendorSkuID, - NameID: vv.StoreSkuInfo.NameID, - VendorPrice: vv.StoreSkuInfo.VendorPrice, - SyncType: vv.SyncType, - ErrMsg: vv.ErrMsg, + 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) }