diff --git a/example/app/material.go b/example/app/material.go index 474871c..21c3a25 100644 --- a/example/app/material.go +++ b/example/app/material.go @@ -202,7 +202,7 @@ var materialCtr = Ctr{ pageSize = 10 } 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"} count := that.Db.Count("material", where) reData := that.Db.Page(page, pageSize).