From 59269b37338e20298cc1b6336f95201b585feb06 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 14 Jan 2020 18:35:38 +0800 Subject: [PATCH] fk --- business/jxstore/cms/sync_store_sku_fakejd.go | 2 +- business/jxstore/cms/sync_store_sku_fakejd_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku_fakejd.go b/business/jxstore/cms/sync_store_sku_fakejd.go index 6114bf67c..773b05824 100644 --- a/business/jxstore/cms/sync_store_sku_fakejd.go +++ b/business/jxstore/cms/sync_store_sku_fakejd.go @@ -255,7 +255,7 @@ func excel2FakeJdThingMap(ctx *jxcontext.Context, reader io.Reader) (thingMapLis for rowNum, row := range rows { thingMap := &model.FakeJdThingMap{ JxID: int(utils.Str2Int64WithDefault(row[0], 0)), - JdID: utils.Str2Int64WithDefault(row[0], 0), + JdID: utils.Str2Int64WithDefault(row[1], 0), } if thingMap.JxID == 0 || thingMap.JdID == 0 { if rowNum == 0 { diff --git a/business/jxstore/cms/sync_store_sku_fakejd_test.go b/business/jxstore/cms/sync_store_sku_fakejd_test.go index 318f40cf2..057444628 100644 --- a/business/jxstore/cms/sync_store_sku_fakejd_test.go +++ b/business/jxstore/cms/sync_store_sku_fakejd_test.go @@ -18,7 +18,7 @@ func TestSyncStoreSku4FakeJD(t *testing.T) { } func TestUploadFakeJdThingMap(t *testing.T) { - file, err := os.Open("/Users/xujianhua/Downloads/thingmap.xlsx") + file, err := os.Open("/Users/xujianhua/Downloads/到家菜市门店与商品映射信息(1).xlsx") if err != nil { t.Fatal(err) }