From ce099b8fc864d38c73c37c2aa237123afe0d755c Mon Sep 17 00:00:00 2001 From: hoteas Date: Wed, 29 Dec 2021 00:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E9=80=82=E5=BA=94?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/app/material.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).