This commit is contained in:
suyl
2021-06-04 15:14:59 +08:00
parent 58b4ea5856
commit 17c4e54468

View File

@@ -779,7 +779,7 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
t5.pay_percentage, t5.old_pay_percentage, t5.market_man_phone, tu.name market_man_name, t5.pay_percentage, t5.old_pay_percentage, t5.market_man_phone, tu.name market_man_name,
t6.vendor_pay_percentage, t6.vendor_pay_percentage,
city.name city_name, district.name district_name, city.name city_name, district.name district_name,
IF(t1.earning_type = 1, t1.total_shop_money-t1.earning_price-t2.desired_fee, t1.total_shop_money *(100- t1.order_pay_percentage/2)) jx_income`, model.DefaultEarningPricePercentage) IF(t1.earning_type = 1, t1.total_shop_money-t1.earning_price-IFNULL(t2.desired_fee, 0), t1.total_shop_money *(100- t1.order_pay_percentage/2)) jx_income`, model.DefaultEarningPricePercentage)
if isIncludeSku { if isIncludeSku {
sql += `, sql += `,
IF(t3.jx_sku_id > 0, t3.jx_sku_id, t3.sku_id) sku_id, IF(t3.jx_sku_id > 0, t3.jx_sku_id, t3.sku_id) sku_id,