uint ->int
This commit is contained in:
parent
8b6160af9d
commit
77b7c9c207
|
@ -33,7 +33,7 @@ func GetListByWhere(request *backend.CmdListRequest, page int, limit int) (count
|
||||||
cond = cond.And(builder.In("cmd_id", request.CmdIds))
|
cond = cond.And(builder.In("cmd_id", request.CmdIds))
|
||||||
}
|
}
|
||||||
|
|
||||||
session := croncmdmodel.GetInstance().GetDb().Where(cond).OrderBy("create_time desc")
|
session := croncmdmodel.GetInstance().GetDb().Where(cond).OrderBy("update_time desc")
|
||||||
|
|
||||||
if page != 0 && limit != 0 {
|
if page != 0 && limit != 0 {
|
||||||
session = session.Limit(limit, (page-1)*limit)
|
session = session.Limit(limit, (page-1)*limit)
|
||||||
|
|
Loading…
Reference in New Issue