From f0e0802597584f1bb61f363f3f14f9e4f0930a77 Mon Sep 17 00:00:00 2001 From: lanyulei Date: Tue, 16 Nov 2021 22:23:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B7=A5=E5=8D=95=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=B5=81=E7=A8=8B=E6=90=9C=E7=B4=A2=E3=80=82?= =?UTF-8?q?=20(fix=20#218)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/workOrderList.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/service/workOrderList.go b/pkg/service/workOrderList.go index 7240b02..600ef6e 100644 --- a/pkg/service/workOrderList.go +++ b/pkg/service/workOrderList.go @@ -54,6 +54,7 @@ func (w *WorkOrder) PureWorkOrderList() (result interface{}, err error) { processor := w.GinObj.DefaultQuery("processor", "") priority := w.GinObj.DefaultQuery("priority", "") creator := w.GinObj.DefaultQuery("creator", "") + processParam := w.GinObj.DefaultQuery("process", "") db := orm.Eloquent.Model(&process.WorkOrderInfo{}). Where("p_work_order_info.title like ?", fmt.Sprintf("%%%v%%", title)) if startTime != "" { @@ -68,6 +69,9 @@ func (w *WorkOrder) PureWorkOrderList() (result interface{}, err error) { if creator != "" { db = db.Where("p_work_order_info.creator = ?", creator) } + if processParam != "" { + db = db.Where("p_work_order_info.process = ?", processParam) + } if processor != "" && w.Classify != 1 { err = orm.Eloquent.Model(&processorInfo). Where("user_id = ?", processor).