From cce39024e159c3e1d06e1cfab30ed831d03e7b0e Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 6 Aug 2019 10:33:38 +0800 Subject: [PATCH] =?UTF-8?q?-=20StoreSkuExt=E4=B8=AD=E5=8E=82=E5=95=86?= =?UTF-8?q?=E7=9A=84SKUID=E5=85=A8=E9=83=A8=E6=8D=A2=E6=88=90=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E4=BB=A5=E5=85=8DJSON.parse=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=9C=A8=E6=95=B4=E6=95=B0=E5=A4=A7=E4=BA=8E53?= =?UTF-8?q?=E4=BD=8D=E5=90=8E=E4=B8=A2=E5=A4=B1=E7=B2=BE=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store_sku.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index d2a3cad9f..e514748ae 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -41,7 +41,7 @@ type StoreSkuExt struct { SkuSpecQuality float32 `json:"specQuality"` SkuSpecUnit string `orm:"size(8)" json:"specUnit"` // 质量或容量 Weight int `json:"weight"` // 重量/质量,单位为克,当相应的SkuName的SpecUnit为g或kg时,必须等于SpecQuality - JdID int64 `orm:"column(sku_jd_id);null;index" json:"jdID"` + JdID string `orm:"column(sku_jd_id);null;index" json:"jdID"` SkuStatus int `json:"status"` BindCreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"` @@ -53,10 +53,10 @@ type StoreSkuExt struct { UnitPrice int `json:"unitPrice"` // 这个是一斤的门店商品价,放在这里的原因是避免额外增加一张store sku_name表,逻辑上要保证同一SKU NAME中的所有SKU这个字段的数据一致 StoreSkuStatus int `json:"storeSkuStatus"` - EbaiID int64 `orm:"column(ebai_id);index" json:"ebaiID"` - MtwmID int64 `orm:"column(mtwm_id)" json:"mtwmID"` // 这个也不是必须的,只是为了DAO取数据语句一致 - WscID int64 `orm:"column(wsc_id);index" json:"wscID"` // 表示微盟skuId - WscID2 int64 `orm:"column(wsc_id2);index" json:"wscID2"` // 表示微盟goodsId + EbaiID string `orm:"column(ebai_id);index" json:"ebaiID"` + MtwmID string `orm:"column(mtwm_id)" json:"mtwmID"` // 这个也不是必须的,只是为了DAO取数据语句一致 + WscID string `orm:"column(wsc_id);index" json:"wscID"` // 表示微盟skuId + WscID2 string `orm:"column(wsc_id2);index" json:"wscID2"` // 表示微盟goodsId JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"`