aa
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package dao
|
package dao
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
"time"
|
"time"
|
||||||
@@ -45,10 +44,8 @@ func GetPrintMsgs(db *DaoDB, statuss []int, beginAt, endAt time.Time, offset, pa
|
|||||||
sql += " AND created_at < ?"
|
sql += " AND created_at < ?"
|
||||||
sqlParams = append(sqlParams, endAt)
|
sqlParams = append(sqlParams, endAt)
|
||||||
}
|
}
|
||||||
sql += "ORDER BY created_at LIMIT ? OFFSET ?"
|
sql += " ORDER BY created_at LIMIT ? OFFSET ?"
|
||||||
sqlParams = append(sqlParams, pageSize, offset)
|
sqlParams = append(sqlParams, pageSize, offset)
|
||||||
fmt.Println(sql)
|
|
||||||
fmt.Println(sqlParams)
|
|
||||||
err = GetRows(db, &prints, sql, sqlParams)
|
err = GetRows(db, &prints, sql, sqlParams)
|
||||||
return prints, err
|
return prints, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user