This commit is contained in:
suyl
2021-08-18 15:11:54 +08:00
parent 0d9481df07
commit e30e5a7310

View File

@@ -518,7 +518,7 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, upcs []strin
sql += `
GROUP BY 1, 2
UNION
SELECT a.store_id, a.sku_id, a.act_price*100 actual_act_price, 0 earning_price
SELECT a.store_id, a.sku_id, 0 actual_act_price, 0 earning_price
FROM act_mtwm_vendor a
WHERE 1 = 1
`
@@ -535,7 +535,7 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, upcs []strin
}
sql += ` GROUP BY 1, 2, 3
UNION
SELECT a.store_id, a.sku_id, a.act_price*100 actual_act_price, 0 earning_price
SELECT a.store_id, a.sku_id, 0 actual_act_price, 0 earning_price
FROM act_ebai_vendor_sku a
WHERE 1 = 1
`