同步错误返回
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
|||||||
|
|
||||||
type SyncErrResult struct {
|
type SyncErrResult struct {
|
||||||
SkuID int `json:"商品ID"`
|
SkuID int `json:"商品ID"`
|
||||||
|
CategoryName string `json:"分类名"`
|
||||||
StoreID int `json:"门店ID"`
|
StoreID int `json:"门店ID"`
|
||||||
VendorID int `json:"平台ID"`
|
VendorID int `json:"平台ID"`
|
||||||
VendorSkuID string `json:"平台商品ID"`
|
VendorSkuID string `json:"平台商品ID"`
|
||||||
@@ -68,6 +69,7 @@ var (
|
|||||||
ErrEntityNotExist = errors.New("找不到相应实体")
|
ErrEntityNotExist = errors.New("找不到相应实体")
|
||||||
SyncErrResultTitle = []string{
|
SyncErrResultTitle = []string{
|
||||||
"商品ID",
|
"商品ID",
|
||||||
|
"分类名",
|
||||||
"门店ID",
|
"门店ID",
|
||||||
"平台ID",
|
"平台ID",
|
||||||
"平台商品ID",
|
"平台商品ID",
|
||||||
@@ -821,6 +823,7 @@ func WirteToExcelBySyncFailed(task tasksch.ITask, ctx *jxcontext.Context) (err e
|
|||||||
for _, vv := range v.([]*partner.StoreSkuInfoWithErr) {
|
for _, vv := range v.([]*partner.StoreSkuInfoWithErr) {
|
||||||
result := SyncErrResult{
|
result := SyncErrResult{
|
||||||
SkuID: vv.StoreSkuInfo.SkuID,
|
SkuID: vv.StoreSkuInfo.SkuID,
|
||||||
|
CategoryName: vv.CategoryName,
|
||||||
StoreID: vv.StoreID,
|
StoreID: vv.StoreID,
|
||||||
VendorID: vv.VendoreID,
|
VendorID: vv.VendoreID,
|
||||||
VendorSkuID: vv.StoreSkuInfo.VendorSkuID,
|
VendorSkuID: vv.StoreSkuInfo.VendorSkuID,
|
||||||
|
|||||||
Reference in New Issue
Block a user