From 4f4744d417b8d0ff264dd9a9c7cb1ce81983d046 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 6 May 2024 13:55:18 +0800 Subject: [PATCH] =?UTF-8?q?1=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/bigData/svc/svc_data.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/bigData/svc/svc_data.go b/app/bigData/svc/svc_data.go index 06cb9ff..2896bf6 100644 --- a/app/bigData/svc/svc_data.go +++ b/app/bigData/svc/svc_data.go @@ -6,6 +6,7 @@ import ( "applet/app/bigData/md" "applet/app/db" "applet/app/db/model" + "applet/app/utils" "encoding/json" "time" ) @@ -213,8 +214,9 @@ func LeftDataForSorting() (resp []md.LeftDataForMakeResp, err error) { } //1、查找不等于4 5 + today := utils.GetTimeRange("today") var orders []model.Order - err = engine.Where(" state != 4 and state != 5").Find(&orders) + err = engine.Where(" state != 4 and state != 5 and create_at>=?", time.Unix(today["start"], 0).Format("2006-01-02 15:04:05")).Find(&orders) if err != nil { return }