From 02a84fb6fb2a39bfe7fc5cf6c0137bbf231b17fe Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 09 十一月 2023 14:14:17 +0800 Subject: [PATCH] 设备列表返回是否设置工艺参数字段 --- model/work_order.go | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/model/work_order.go b/model/work_order.go index a6ed58a..6d32261 100644 --- a/model/work_order.go +++ b/model/work_order.go @@ -127,6 +127,10 @@ db = db.Where("work_order_id = ?", slf.WorkOrderID) } + if len(slf.WorkOrderIDs) != 0 { + db = db.Where("work_order_id in (?)", slf.WorkOrderIDs) + } + if slf.Status != 0 { db = db.Where("status = ?", slf.Status) } -- Gitblit v1.8.0