liuxiaolong
2020-08-17 180389ae7cbbeae5175a303a3811ebbf7650b132
models/log.go
@@ -23,8 +23,8 @@
   return o.Insert(l)
}
func (l *Log) Find(curPage int, pageSize int, startTime string, endTime string) (int,[]Log) {
   var list []Log
func (l *Log) Find(curPage int, pageSize int, startTime string, endTime string) (int,[]*Log) {
   var list []*Log
   o := orm.NewOrm()
   var total int
   sql := "select count(*) from "+l.TableName()+" where createTime >='"+startTime+"' and createTime <= '"+endTime+"'"