饿百商品准备时长

This commit is contained in:
苏尹岚
2020-06-15 11:09:25 +08:00
parent 5744da45d1
commit eb53afe20b
4 changed files with 22 additions and 18 deletions

View File

@@ -599,7 +599,8 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku, isQueryMidPric
t1.ex_prefix_begin, t1.ex_prefix_begin,
t1.ex_prefix_end, t1.ex_prefix_end,
t1.yb_name_suffix, t1.yb_name_suffix,
t1.jds_stock_switch t1.jds_stock_switch,
t1.preparation_time
` `
if isQueryMidPrice { if isQueryMidPrice {
sql += `, sql += `,
@@ -643,6 +644,7 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku, isQueryMidPric
t1.ex_prefix_end, t1.ex_prefix_end,
t1.yb_name_suffix, t1.yb_name_suffix,
t1.jds_stock_switch, t1.jds_stock_switch,
t1.preparation_time,
` `
if isQueryMidPrice { if isQueryMidPrice {
sqlData += " t4.mid_unit_price," sqlData += " t4.mid_unit_price,"

View File

@@ -87,6 +87,7 @@ type StoreSkuSyncInfo struct {
YbNameSuffix string //银豹的商品条码后缀 YbNameSuffix string //银豹的商品条码后缀
YbBarCode string //银豹的商品条码 YbBarCode string //银豹的商品条码
JdsStockSwitch int JdsStockSwitch int
PreparationTime int
// 平台相关的图片信息 // 平台相关的图片信息
Img string Img string
@@ -405,7 +406,7 @@ func GetStoreSkus2(db *DaoDB, vendorID, storeID int, skuIDs []int, mustDirty boo
t1.store_id, t1.deleted_at bind_deleted_at,t1.status_sale_begin,t1.status_sale_end, t1.jds_ware_id, t1.store_id, t1.deleted_at bind_deleted_at,t1.status_sale_begin,t1.status_sale_end, t1.jds_ware_id,
t2.*, t2.*,
t3.id name_id, t3.prefix, t3.name, t3.unit, t3.upc, t3.status name_status, t3.ex_prefix, t3.ex_prefix_begin, t3.ex_prefix_end, t3.category_id name_category_id, t3.yb_name_suffix, t3.id name_id, t3.prefix, t3.name, t3.unit, t3.upc, t3.status name_status, t3.ex_prefix, t3.ex_prefix_begin, t3.ex_prefix_end, t3.category_id name_category_id, t3.yb_name_suffix,
t3.jds_stock_switch, t3.jds_stock_switch, t3.preparation_time,
IF(t11.%s <> '', t11.%s, t3.img) img, IF(t11.%s <> '', t11.%s, t3.img) img,
IF(t12.%s <> '', t12.%s, t3.img2) img2, IF(t12.%s <> '', t12.%s, t3.img2) img2,
IF(t15.%s <> '', t15.%s, t3.img3) img3, IF(t15.%s <> '', t15.%s, t3.img3) img3,

View File

@@ -188,8 +188,8 @@ type SkuName struct {
// LinkID int `orm:"column(link_id);null;index" json:"linkID"` // LinkID int `orm:"column(link_id);null;index" json:"linkID"`
YbNameSuffix string `json:"ybNameSuffix"` //银豹商品后缀 YbNameSuffix string `json:"ybNameSuffix"` //银豹商品后缀
JdsStockSwitch int8 `orm:"default(1)" json:"jdsStockSwitch"` JdsStockSwitch int8 `orm:"default(1)" json:"jdsStockSwitch"` //京东商城总库存
PreparationTime int `orm:"default(1)" json:"preparationTime"` PreparationTime int `orm:"default(1)" json:"preparationTime"` //商品准备时长
} }
func (*SkuName) TableUnique() [][]string { func (*SkuName) TableUnique() [][]string {

View File

@@ -342,6 +342,7 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
// "cat3_id": getEbaiCat(storeSku.VendorVendorCatID), // "cat3_id": getEbaiCat(storeSku.VendorVendorCatID),
"weight": storeSku.Weight, "weight": storeSku.Weight,
"photos": photos, "photos": photos,
"preparation_time": storeSku.PreparationTime,
} }
if !isExd { if !isExd {
params["category_id"] = utils.Str2Int64(storeSku.VendorCatID) params["category_id"] = utils.Str2Int64(storeSku.VendorCatID)