From 28addaa46cb97c20ad37e13eb10535de7b75e71c Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 29 十一月 2023 19:29:43 +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