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