From e629fa8783b62c8bae50bcb3a84a1ff5452a85ea Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 27 Dec 2023 12:06:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/db_guide_order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/db/db_guide_order.go b/app/db/db_guide_order.go index c187ec3..3172919 100644 --- a/app/db/db_guide_order.go +++ b/app/db/db_guide_order.go @@ -73,10 +73,10 @@ func GetGuideOrderListTotal(args map[string]string) ([]model.GuideOrder, int64) offet := (utils.StrToInt(args["p"]) - 1) * size sess := ZhimengDb.Where("1=1") if args["start_time"] != "" { - sess = sess.And("create_time>=?", args["start_time"]) + sess = sess.And("create_time>=?", utils.TimeStdParseUnix(args["start_time"])) } if args["end_time"] != "" { - sess = sess.And("create_time<=?", args["end_time"]) + sess = sess.And("create_time<=?", utils.TimeStdParseUnix(args["end_time"])) } if args["type"] != "" { sess = sess.And("pvd=?", args["type"])