增加自适应模式
This commit is contained in:
parent
9c00ac6ba1
commit
ce099b8fc8
@ -202,7 +202,7 @@ var materialCtr = Ctr{
|
|||||||
pageSize = 10
|
pageSize = 10
|
||||||
}
|
}
|
||||||
leftJoin := Map{"[><]admin": "material.admin_id=admin.id"}
|
leftJoin := Map{"[><]admin": "material.admin_id=admin.id"}
|
||||||
columnStr := "material.id,material.sn,material.name,material.img,material.count,material.used,material.saved,material.admin_id,admin.name AS admin_name,material.modify_time,material.state"
|
columnStr := "material.id,material.name,material.img,material.count,material.used,material.saved,material.admin_id,admin.name AS admin_name,material.modify_time,material.state"
|
||||||
where := Map{"ORDER": "modify_time DESC"}
|
where := Map{"ORDER": "modify_time DESC"}
|
||||||
count := that.Db.Count("material", where)
|
count := that.Db.Count("material", where)
|
||||||
reData := that.Db.Page(page, pageSize).
|
reData := that.Db.Page(page, pageSize).
|
||||||
|
Loading…
Reference in New Issue
Block a user