aa
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-print/model"
|
||||
"github.com/jmoiron/sqlx"
|
||||
@@ -40,6 +41,8 @@ func GetSimFlowExpendSum(db *sqlx.DB, iccid string, createdAtBegin, createdAtEnd
|
||||
sqlParams = append(sqlParams, createdAtEnd)
|
||||
}
|
||||
sql += " GROUP BY 2, 3"
|
||||
fmt.Println(sql)
|
||||
fmt.Println(sqlParams)
|
||||
if err = db.Select(&simFlowExpnds, sql, sqlParams); err == nil && len(simFlowExpnds) > 0 {
|
||||
return simFlowExpnds[0], err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user