From c8303f55819e2d8b5a56e6316f79c2250d9b659c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期日, 08 十月 2023 21:16:09 +0800
Subject: [PATCH] 工序更新时保存使用的工艺参数编号

---
 service/process_model.go |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/service/process_model.go b/service/process_model.go
index de73152..728248d 100644
--- a/service/process_model.go
+++ b/service/process_model.go
@@ -11,7 +11,11 @@
 		return
 	}
 	list, total, err = model.NewProcessModelSearch().
-		SetIsNew(true).
+		SetIsNew(true).SetOrder("id desc").
 		SetPage(page, pageSize).SetProcedures(device.ProceduresArr).Find()
 	return
 }
+
+func GetProcessModelByNumber(num string) (record *model.ProcessModel, err error) {
+	return model.NewProcessModelSearch().SetNumber(num).First()
+}

--
Gitblit v1.8.0