新增美团新规则包装费
This commit is contained in:
@@ -673,6 +673,8 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku, isQueryMidPric
|
|||||||
'","weight":', t2.weight, ',"categoryID":', t2.category_id, ',"nameID":', t2.name_id,
|
'","weight":', t2.weight, ',"categoryID":', t2.category_id, ',"nameID":', t2.name_id,
|
||||||
', "seq":', t2.seq,
|
', "seq":', t2.seq,
|
||||||
', "minOrderCount":', t2.min_order_count,
|
', "minOrderCount":', t2.min_order_count,
|
||||||
|
', "ladderBoxNum":', t2.ladder_box_num,
|
||||||
|
', "ladderBoxPrice":', t2.ladder_box_price,
|
||||||
"}")), "]") skus_str,
|
"}")), "]") skus_str,
|
||||||
CONCAT("[", GROUP_CONCAT(DISTINCT t3.place_code), "]") places_str
|
CONCAT("[", GROUP_CONCAT(DISTINCT t3.place_code), "]") places_str
|
||||||
` + sql + `
|
` + sql + `
|
||||||
|
|||||||
@@ -267,8 +267,8 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
|||||||
foodData["min_order_count"] = 1
|
foodData["min_order_count"] = 1
|
||||||
}
|
}
|
||||||
foodData["unit"] = storeSku.Unit
|
foodData["unit"] = storeSku.Unit
|
||||||
foodData["box_num"] = 1
|
foodData["ladder_box_num"] = storeSku.LadderBoxNum
|
||||||
foodData["box_price"] = jxutils.IntPrice2Standard(storeSku.BoxFee)
|
foodData["ladder_box_price"] = jxutils.IntPrice2Standard(int64(storeSku.LadderBoxPrice))
|
||||||
attr := switchAttr(storeSku.VendorVendorCatID)
|
attr := switchAttr(storeSku.VendorVendorCatID)
|
||||||
if attr != "" {
|
if attr != "" {
|
||||||
foodData["common_attr_value"] = attr
|
foodData["common_attr_value"] = attr
|
||||||
|
|||||||
Reference in New Issue
Block a user