This commit is contained in:
邹宗楠
2022-01-11 11:04:15 +08:00
parent 736c6422a2
commit 87a72f3323
2 changed files with 9 additions and 0 deletions

View File

@@ -4735,6 +4735,11 @@ func QueryPageStores2(db *dao.DaoDB, pageSize, offset int, keyword, vendorStoreI
city_name, goods_number sku_count, lat, lng, district_name, brand_name, IF(rek = '买菜', '菜市', rek) category, shipping_time
FROM meituan_showd
`
sqlGD := `
SELECT name, 10 vendor_id, wmpoiid vendor_store_id,'' org_code,1 vendor_status,address, phone tel1,pj shop_score,month_sales_tip recent_order_num,
remark city_name,goods_number sku_count,lat, lng, district_name, brand_name, third_category category, shipping_time
FROM gaode_showd
`
sql := `
SELECT SQL_CALC_FOUND_ROWS
t1.*, t2.code city_code
@@ -4744,6 +4749,7 @@ func QueryPageStores2(db *dao.DaoDB, pageSize, offset int, keyword, vendorStoreI
sql += sqlJD + ` UNION`
sql += sqlMT + ` UNION`
sql += sqlEbai
sql += sqlGD
} else {
switch vendorID {
case model.VendorIDJD:
@@ -4752,6 +4758,8 @@ func QueryPageStores2(db *dao.DaoDB, pageSize, offset int, keyword, vendorStoreI
sql += sqlMT
case model.VendorIDEBAI:
sql += sqlEbai
case model.VendorIDGD:
sql += sqlGD
}
}
sql += `

View File

@@ -14,6 +14,7 @@ const (
VendorIDMTWM = 1
VendorIDELM = 2
VendorIDEBAI = 3
VendorIDGD = 10
VendorIDYB = 4 //银豹
VendorIDJDShop = 5 //京东商城
VendorIDWSC = 11 // 微盟微商城