aa
This commit is contained in:
@@ -771,8 +771,8 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
|||||||
offset = jxutils.FormalizePageOffset(offset)
|
offset = jxutils.FormalizePageOffset(offset)
|
||||||
|
|
||||||
sql := fmt.Sprintf(`
|
sql := fmt.Sprintf(`
|
||||||
SELECT SQL_CALC_FOUND_ROWS * FROM (
|
SELECT a.* FROM (
|
||||||
SELECT
|
SELECT SQL_CALC_FOUND_ROWS
|
||||||
DISTINCT t1.*,
|
DISTINCT t1.*,
|
||||||
CAST(IF(t1.earning_price <> 0, t1.earning_price, IF(t1.shop_price <> 0 && t1.shop_price < t1.sale_price, t1.shop_price, t1.sale_price) * IF(t1.order_pay_percentage > 0, t1.order_pay_percentage, %d) / 100) AS SIGNED) earning_price,
|
CAST(IF(t1.earning_price <> 0, t1.earning_price, IF(t1.shop_price <> 0 && t1.shop_price < t1.sale_price, t1.shop_price, t1.sale_price) * IF(t1.order_pay_percentage > 0, t1.order_pay_percentage, %d) / 100) AS SIGNED) earning_price,
|
||||||
t2.status waybill_status, t2.courier_name, t2.courier_mobile,
|
t2.status waybill_status, t2.courier_name, t2.courier_mobile,
|
||||||
@@ -987,7 +987,7 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
sql += `
|
sql += `
|
||||||
LIMIT ? OFFSET ?) WHERE 1 = 1`
|
LIMIT ? OFFSET ?) a WHERE 1 = 1`
|
||||||
sqlParams = append(sqlParams, pageSize, offset)
|
sqlParams = append(sqlParams, pageSize, offset)
|
||||||
if params["jxIncomeBegin"] != nil {
|
if params["jxIncomeBegin"] != nil {
|
||||||
if utils.MustInterface2Int64(params["jxIncomeBegin"]) != 0 {
|
if utils.MustInterface2Int64(params["jxIncomeBegin"]) != 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user