aa
This commit is contained in:
@@ -4345,7 +4345,23 @@ func RefreshPageStore() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//商品表合并
|
//商品表合并
|
||||||
|
sql3 := ` TRUNCATE page_sku`
|
||||||
|
dao.ExecuteSQL(db, sql3)
|
||||||
|
sql4 := `
|
||||||
|
INSERT INTO page_sku (created_at,updated_at,last_operator,vendor_id,vendor_store_id,vendor_sku_id,vendor_sku_name,month_saled,act_price,sale_price,unit)
|
||||||
|
SELECT NOW(),NOW(),'jxadmin',t1.* FROM (
|
||||||
|
(
|
||||||
|
SELECT 0, a.wmpoiid, a.Base, a.name, a.month_saled, a.min_price*100, a.basic_price*100, ''
|
||||||
|
FROM jingdong_foodlist a
|
||||||
|
)
|
||||||
|
UNION ALL
|
||||||
|
(
|
||||||
|
SELECT 1, a.wmpoiid, '', a.name, a.month_saled, 0, a.min_price*100, a.unit
|
||||||
|
FROM meituan_foodlist a
|
||||||
|
)
|
||||||
|
)t1
|
||||||
|
`
|
||||||
|
dao.ExecuteSQL(db, sql4)
|
||||||
}
|
}
|
||||||
|
|
||||||
func QueryPageStores2(db *dao.DaoDB, pageSize, offset int, keyword string, vendorStoreID string, vendorID, cityCode, districtCode int, tel string,
|
func QueryPageStores2(db *dao.DaoDB, pageSize, offset int, keyword string, vendorStoreID string, vendorID, cityCode, districtCode int, tel string,
|
||||||
|
|||||||
@@ -362,6 +362,7 @@ type PageSku struct {
|
|||||||
MonthSaled int `json:"monthSaled"`
|
MonthSaled int `json:"monthSaled"`
|
||||||
ActPrice int `json:"actPrice"`
|
ActPrice int `json:"actPrice"`
|
||||||
SalePrice int `json:"salePrice"`
|
SalePrice int `json:"salePrice"`
|
||||||
|
Unit string `json:"unit"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*PageSku) TableUnique() [][]string {
|
func (*PageSku) TableUnique() [][]string {
|
||||||
|
|||||||
Reference in New Issue
Block a user