From a8622c9cc1b20eac20e384e704aa98194372e72a Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期日, 08 十月 2023 20:45:15 +0800
Subject: [PATCH] 工序保存使用的工艺参数编号

---
 model/procedures.go |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/model/procedures.go b/model/procedures.go
index 425a192..8a7f145 100644
--- a/model/procedures.go
+++ b/model/procedures.go
@@ -12,18 +12,19 @@
 
 type (
 	Procedures struct {
-		gorm.Model     `json:"-"`
-		ID             int    `gorm:"primarykey"`
-		WorkOrderID    string `gorm:"index;type:varchar(191);not null;comment:宸ュ崟ID" json:"-"`
-		OrderID        string `gorm:"index;type:varchar(191);not null;comment:璁㈠崟ID" json:"-"`
-		DeviceID       string `gorm:"index;type:varchar(191);comment:璁惧ID" json:"deviceId"`
-		ProcedureID    string `gorm:"index;type:varchar(191);comment:宸ュ簭ID" json:"procedureId"`
-		Channel        int32  `gorm:"index;comment:閫氶亾" json:"channel"` //閫氶亾
-		StartTime      int64  `gorm:"comment:璁″垝寮�濮嬫椂闂�" json:"startTime"`
-		EndTime        int64  `gorm:"comment:璁″垝缁撴潫鏃堕棿" json:"endTime"`
-		Status         ProcedureStatus
-		ProcedureData  string                  `json:"-"`                  //common.ProductProcedure  json涓�
-		ProceduresInfo common.ProductProcedure `json:"procedure" gorm:"-"` //common.ProductProcedure  瀵硅薄
+		gorm.Model         `json:"-"`
+		ID                 int    `gorm:"primarykey"`
+		WorkOrderID        string `gorm:"index;type:varchar(191);not null;comment:宸ュ崟ID" json:"-"`
+		OrderID            string `gorm:"index;type:varchar(191);not null;comment:璁㈠崟ID" json:"-"`
+		DeviceID           string `gorm:"index;type:varchar(191);comment:璁惧ID" json:"deviceId"`
+		ProcedureID        string `gorm:"index;type:varchar(191);comment:宸ュ簭ID" json:"procedureId"`
+		Channel            int32  `gorm:"index;comment:閫氶亾" json:"channel"`                //閫氶亾
+		ProcessModelNumber string `gorm:"index;comment:宸ヨ壓妯″瀷缂栧彿" json:"processModelNumber"` //宸ヨ壓妯″瀷缂栧彿
+		StartTime          int64  `gorm:"comment:璁″垝寮�濮嬫椂闂�" json:"startTime"`
+		EndTime            int64  `gorm:"comment:璁″垝缁撴潫鏃堕棿" json:"endTime"`
+		Status             ProcedureStatus
+		ProcedureData      string                  `json:"-"`                  //common.ProductProcedure  json涓�
+		ProceduresInfo     common.ProductProcedure `json:"procedure" gorm:"-"` //common.ProductProcedure  瀵硅薄
 	}
 
 	ProceduresSearch struct {

--
Gitblit v1.8.0