From 501557778c70fbc71dc3a58d9cb5465745bf9cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 8 May 2020 17:06:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=AC=E4=B8=9C=E5=95=86?= =?UTF-8?q?=E5=9F=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/store_sku.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/business/model/dao/store_sku.go b/business/model/dao/store_sku.go index fc6c0494d..fec9b61b0 100644 --- a/business/model/dao/store_sku.go +++ b/business/model/dao/store_sku.go @@ -216,19 +216,23 @@ type StoreSkuExt struct { EbaiID string `orm:"column(ebai_id);index" json:"ebaiID"` MtwmID string `orm:"column(mtwm_id)" json:"mtwmID"` // 这个也不是必须的,只是为了DAO取数据语句一致 YbID string `orm:"column(yb_id);index" json:"ybID"` + JdsID int64 `orm:"column(jds_id);index"` JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"` EbaiSyncStatus int8 `orm:"default(2)" json:"ebaiSyncStatus"` MtwmSyncStatus int8 `orm:"default(2)" json:"mtwmSyncStatus"` YbSyncStatus int8 `orm:"default(2)" json:"ybSyncStatus"` + JdsSyncStatus int8 `orm:"default(2)"` //京东商城 JdPrice int `json:"jdPrice"` EbaiPrice int `json:"ebaiPrice"` MtwmPrice int `json:"mtwmPrice"` JxPrice int `json:"jxPrice"` YbPrice int `json:"ybPrice"` + JdsPrice int `json:"jdsPrice"` JdLockTime *time.Time `orm:"null" json:"jdLockTime,omitempty"` + JdsLockTime *time.Time `orm:"null" json:"jdsLockTime"` EbaiLockTime *time.Time `orm:"null" json:"ebaiLockTime,omitempty"` MtwmLockTime *time.Time `orm:"null" json:"mtwmLockTime,omitempty"` JxLockTime *time.Time `orm:"null" json:"jxLockTime,omitempty"` @@ -1329,8 +1333,6 @@ func UpdateActPrice4StoreSkuNameNew(db *DaoDB, storeIDs, skuIDs []int, skuNamesI vendorInfo := &StoreSkuVendorInfo{ VendorID: vendorID, } - fmt.Println("tes1", GetVendorPriceStructField(model.VendorNames[vendorID])) - fmt.Println("tes1", utils.Format4Output(v, false)) vendorInfo.VendorPrice = refutil.GetObjFieldByName(v, GetVendorPriceStructField(model.VendorNames[vendorID])).(int) lockTime, _ := refutil.GetObjFieldByName(v, GetVendorLockTimeStructField(model.VendorNames[vendorID])).(*time.Time) vendorInfo.LockTime = lockTime