From 2ea23e2364f742f528fb8b97657212c174d1bbd7 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 21 十月 2023 14:06:59 +0800
Subject: [PATCH] 增加切换serf状态接口(调试用)

---
 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