From dcf393c077af5638ea12c05dd6e1754fa535be20 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 27 十一月 2023 16:30:04 +0800
Subject: [PATCH] 排程任务下发增加productProcedureID,报工表和工序表增加productProcedureID

---
 model/common/common.go |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/model/common/common.go b/model/common/common.go
index e47b1fd..dee9b4c 100644
--- a/model/common/common.go
+++ b/model/common/common.go
@@ -38,20 +38,21 @@
 	}
 
 	ProductProcedure struct {
-		ProcedureID       string               `gorm:"uniqueIndex:idx_product_procedure;type:varchar(191);comment:宸ュ簭ID" json:"procedureId"`
-		ProcedureName     string               `gorm:"type:varchar(191);comment:宸ュ簭鍚嶇О锛屼粎鏌ヨ鐢�" json:"procedureName"`
-		NextProcedureID   string               `json:"nextProcedureId"`
-		NextProcedureName string               `json:"nextProcedureName"`
-		DeviceID          string               `gorm:"type:varchar(191);not null;comment:璁惧ID" json:"deviceId"`
-		DeviceName        string               `json:"deviceName"`
-		StartTime         int64                `gorm:"comment:璁″垝寮�濮嬫椂闂�" json:"startTime"`
-		EndTime           int64                `gorm:"comment:璁″垝缁撴潫鏃堕棿" json:"endTime"`
-		WorkHours         decimal.Decimal      `gorm:"type:decimal(35,18);comment:宸ユ椂" json:"workHours"`
-		InputMaterials    []*ProcedureMaterial `json:"inputMaterials"`    // 杈撳叆鐗╂枡鍒楄〃
-		OutputMaterials   []*ProcedureMaterial `json:"outputMaterials"`   // 杈撳嚭鐗╂枡鍒楄〃
-		Workers           []*ProcedureWorker   `json:"workers"`           // 浜哄憳鍒楄〃
-		AllProcedureNames []string             `json:"allProcedureNames"` // 鎵�灞炲伐鍗曞伐搴忓垪琛�
-		Channel           int32                `json:"channel"`           //閫氶亾搴忓彿
+		ProductProcedureID string               `gorm:"index;type:varchar(191);not null;comment:浜у搧宸ュ簭ID" json:"productProcedureID"`
+		ProcedureID        string               `gorm:"uniqueIndex:idx_product_procedure;type:varchar(191);comment:宸ュ簭ID" json:"procedureId"`
+		ProcedureName      string               `gorm:"type:varchar(191);comment:宸ュ簭鍚嶇О锛屼粎鏌ヨ鐢�" json:"procedureName"`
+		NextProcedureID    string               `json:"nextProcedureId"`
+		NextProcedureName  string               `json:"nextProcedureName"`
+		DeviceID           string               `gorm:"type:varchar(191);not null;comment:璁惧ID" json:"deviceId"`
+		DeviceName         string               `json:"deviceName"`
+		StartTime          int64                `gorm:"comment:璁″垝寮�濮嬫椂闂�" json:"startTime"`
+		EndTime            int64                `gorm:"comment:璁″垝缁撴潫鏃堕棿" json:"endTime"`
+		WorkHours          decimal.Decimal      `gorm:"type:decimal(35,18);comment:宸ユ椂" json:"workHours"`
+		InputMaterials     []*ProcedureMaterial `json:"inputMaterials"`    // 杈撳叆鐗╂枡鍒楄〃
+		OutputMaterials    []*ProcedureMaterial `json:"outputMaterials"`   // 杈撳嚭鐗╂枡鍒楄〃
+		Workers            []*ProcedureWorker   `json:"workers"`           // 浜哄憳鍒楄〃
+		AllProcedureNames  []string             `json:"allProcedureNames"` // 鎵�灞炲伐鍗曞伐搴忓垪琛�
+		Channel            int32                `json:"channel"`           //閫氶亾搴忓彿
 	}
 
 	DeliverScheduleTask struct {

--
Gitblit v1.8.0