From bd72b79987fd57299672cc0fa11d9ac73c5c53f4 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 7 Jun 2021 09:17:12 +0800 Subject: [PATCH] aa --- business/model/dao/dao_order.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 980ed0cdd..403e94189 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -780,7 +780,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, t6.vendor_pay_percentage, city.name city_name, district.name district_name, - ROUND(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)/100)) jx_income`, model.DefaultEarningPricePercentage) + ROUND(IF(t1.earning_type = 1, t1.total_shop_money-t1.earning_price-IFNULL(t2.desired_fee,0), t1.total_shop_money *(t1.order_pay_percentage/2)/100)) jx_income`, model.DefaultEarningPricePercentage) if isIncludeSku { sql += `, IF(t3.jx_sku_id > 0, t3.jx_sku_id, t3.sku_id) sku_id, @@ -1003,8 +1003,6 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat sql += " LIMIT ? OFFSET ?" sqlParams = append(sqlParams, pageSize, offset) txDB, _ := Begin(db) - fmt.Println(sql) - fmt.Println(sqlParams) defer Commit(db, txDB) if err = GetRowsTx(txDB, &orders, sql, sqlParams...); err == nil { totalCount = GetLastTotalRowCount2(db, txDB)