增加自适应模式

This commit is contained in:
hoteas
2021-12-27 20:40:16 +08:00
parent a47473f245
commit d3b355836d
21 changed files with 410 additions and 1994 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ var productCtr = Ctr{
}
leftJoin := Map{"[><]admin": "product.admin_id=admin.id"}
columnStr := "product.id,product.sn,product.name,product.img,product.count,product.used,product.saved,product.spot_check_count,product.admin_id,admin.name AS admin_name,product.modify_time,product.state"
columnStr := "product.id,product.name,product.img,product.count,product.used,product.saved,product.spot_check_count,product.admin_id,admin.name AS admin_name,product.modify_time,product.state"
where := Map{"ORDER": "modify_time DESC"}
count := that.Db.Count("product", where)
reData := that.Db.Page(page, pageSize).