- StoreSkuExt中厂商的SKUID全部换成字符串以免JSON.parse函数在整数大于53位后丢失精度
This commit is contained in:
@@ -41,7 +41,7 @@ type StoreSkuExt struct {
|
|||||||
SkuSpecQuality float32 `json:"specQuality"`
|
SkuSpecQuality float32 `json:"specQuality"`
|
||||||
SkuSpecUnit string `orm:"size(8)" json:"specUnit"` // 质量或容量
|
SkuSpecUnit string `orm:"size(8)" json:"specUnit"` // 质量或容量
|
||||||
Weight int `json:"weight"` // 重量/质量,单位为克,当相应的SkuName的SpecUnit为g或kg时,必须等于SpecQuality
|
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"`
|
SkuStatus int `json:"status"`
|
||||||
|
|
||||||
BindCreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"`
|
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这个字段的数据一致
|
UnitPrice int `json:"unitPrice"` // 这个是一斤的门店商品价,放在这里的原因是避免额外增加一张store sku_name表,逻辑上要保证同一SKU NAME中的所有SKU这个字段的数据一致
|
||||||
StoreSkuStatus int `json:"storeSkuStatus"`
|
StoreSkuStatus int `json:"storeSkuStatus"`
|
||||||
|
|
||||||
EbaiID int64 `orm:"column(ebai_id);index" json:"ebaiID"`
|
EbaiID string `orm:"column(ebai_id);index" json:"ebaiID"`
|
||||||
MtwmID int64 `orm:"column(mtwm_id)" json:"mtwmID"` // 这个也不是必须的,只是为了DAO取数据语句一致
|
MtwmID string `orm:"column(mtwm_id)" json:"mtwmID"` // 这个也不是必须的,只是为了DAO取数据语句一致
|
||||||
WscID int64 `orm:"column(wsc_id);index" json:"wscID"` // 表示微盟skuId
|
WscID string `orm:"column(wsc_id);index" json:"wscID"` // 表示微盟skuId
|
||||||
WscID2 int64 `orm:"column(wsc_id2);index" json:"wscID2"` // 表示微盟goodsId
|
WscID2 string `orm:"column(wsc_id2);index" json:"wscID2"` // 表示微盟goodsId
|
||||||
|
|
||||||
JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"`
|
JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user