This commit is contained in:
苏尹岚
2021-02-04 17:57:05 +08:00
parent 5b45811b8d
commit c8ab2b2310
2 changed files with 6 additions and 1 deletions

View File

@@ -4425,6 +4425,9 @@ func CreateSkusAndFocusFromWx(ctx *jxcontext.Context, productInfo *jdapi.Product
if strings.Contains(productInfo.OriginalName, upcSpecName1) {
originName = strings.ReplaceAll(productInfo.OriginalName, upcSpecName1, "")
}
if strings.Contains(productInfo.OriginalName, "*") {
originName = strings.ReplaceAll(productInfo.OriginalName, "*", "")
}
_, name, _, specUnit, unit, specQuality := jxutils.SplitSkuName(originName)
productInfo.Name = name
productInfo.SpecQuality = specQuality

View File

@@ -57,6 +57,8 @@ type StoreDetail struct {
YbAppID string `orm:"column(yb_app_id)" json:"ybAppID"`
YbAppKey string `json:"ybAppKey"`
YbStorePrefix string `json:"ybStorePrefix"`
MtwmToken string `json:"mtwmToken"`
}
// 带快递门店信息的
@@ -101,7 +103,7 @@ func getStoreDetail(db *DaoDB, storeID, vendorID int, vendorStoreID, vendorOrgCo
SELECT t1.*,
t2.vendor_store_id, t2.status vendor_status, t2.delivery_fee_deduction_sill, t2.delivery_fee_deduction_fee, t2.sync_status, t2.vendor_org_code,
t2.price_percentage, t2.auto_pickup, t2.delivery_type, t2.delivery_competition, t2.is_sync, t2.vendor_store_name, t2.is_order, t2.yb_app_id, t2.yb_app_key, t2.yb_store_prefix,
t2.jds_street_code, t2.jds_street_name, t2.is_supply_goods, t2.vendor_pay_percentage,
t2.jds_street_code, t2.jds_street_name, t2.is_supply_goods, t2.vendor_pay_percentage, t2.mtwm_token,
t3.value price_percentage_pack_str,
t4.value freight_deduction_pack_str,
province.name province_name,