aa
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
@@ -104,7 +105,7 @@ func GetStatisticsReportForOrders(db *DaoDB, storeIDs, vendorIDs []int, fromDate
|
||||
SUM(IF(a.earning_type = 1, a.earning_price, a.new_earning_price)) earning_price1,
|
||||
SUM(a.total_shop_money-IF(a.earning_type = 1, a.earning_price, a.new_earning_price)-b.desired_fee) total_gross_profit1,
|
||||
SUM(d.shop_price) afs_shop_price,
|
||||
SUM(d.refund_money_by_cal) afs_total_money
|
||||
SUM(IF(d.refund_money_by_cal > 0, d.refund_money_by_cal, 0)) afs_total_money
|
||||
FROM goods_order a
|
||||
LEFT JOIN waybill b ON IF(a.waybill_vendor_id = -1,a.vendor_order_id,a.vendor_waybill_id) = b.vendor_waybill_id
|
||||
LEFT JOIN afs_order c ON c.vendor_order_id = a.vendor_order_id
|
||||
|
||||
Reference in New Issue
Block a user