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"])