aa
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
@@ -190,11 +189,6 @@ type GetPayStatisticsResult struct {
|
||||
MemberIncome int `json:"memberIncome"` //会员收益
|
||||
}
|
||||
|
||||
func getWhereSql(sqlP []interface{}, fromTime, toTime time.Time, orderTypes []int) (sql string) {
|
||||
|
||||
return sql
|
||||
}
|
||||
|
||||
func getFromSql(orderType, status int, alies string, userID string, pop int, cityCodes []int, mobile string, fromTime, toTime time.Time, orderTypes []int) (sql string, sqlParams []interface{}) {
|
||||
sql += `
|
||||
(SELECT SUM(IFNULL(b.pay_price,0)) total_pay
|
||||
@@ -293,10 +287,7 @@ func GetPayStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile
|
||||
}
|
||||
sql += `
|
||||
) t4`
|
||||
fmt.Println(sql)
|
||||
fmt.Println(sqlParams)
|
||||
err = GetRow(db, &getPayStatisticsResult, sql, sqlParams)
|
||||
fmt.Println(utils.Format4Output(getPayStatisticsResult, false))
|
||||
sqlParams2 := []interface{}{}
|
||||
getPayStatisticsResult1 := &GetPayStatisticsResult{}
|
||||
sql2 := `
|
||||
|
||||
Reference in New Issue
Block a user