This commit is contained in:
suyl
2021-08-14 16:41:15 +08:00
parent a0fa918322
commit e0fe502f49

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
SELECT a.store_id, a.sku_id, a.act_price*100 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
SELECT a.store_id, a.sku_id, a.act_price*100 actual_act_price, 0 earning_price
FROM act_ebai_vendor_sku a
WHERE 1 = 1
`