From 28addaa46cb97c20ad37e13eb10535de7b75e71c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 29 十一月 2023 19:29:43 +0800
Subject: [PATCH] 首次报工开始时间为工序开始时间

---
 model/report_work.go |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/model/report_work.go b/model/report_work.go
index 658ff65..4f8d8a6 100644
--- a/model/report_work.go
+++ b/model/report_work.go
@@ -9,13 +9,12 @@
 type (
 	ReportWork struct {
 		gorm.Model
-		ProceduresID       uint   `gorm:"index;type:varchar(191)" json:"proceduresId"`                //procedures琛ㄧ殑id
-		ProductProcedureID string `gorm:"index;type:varchar(191);not null" json:"productProcedureID"` //浜у搧宸ュ簭id
-		WorkOrderID        string `gorm:"index;type:varchar(191);not null" json:"workOrderId"`
+		ProceduresID       uint   `gorm:"index;type:varchar(191)" json:"proceduresId"`        //procedures琛ㄧ殑id
+		ProductProcedureID string `gorm:"index;type:varchar(191);" json:"productProcedureID"` //浜у搧宸ュ簭id
+		WorkOrderID        string `gorm:"index;type:varchar(191);" json:"workOrderId"`
 		DeviceID           string `gorm:"index;type:varchar(191)" json:"deviceId"`
 		DeviceName         string `gorm:"index;type:varchar(191)" json:"deviceName"`
 		ProcedureID        string `gorm:"index;type:varchar(191)" json:"procedureId"`
-		Channel            int32  `gorm:"index;" json:"channel"` //閫氶亾
 		StartTime          int64  `json:"startTime"`
 		EndTime            int64  `json:"endTime"`
 		ReportAmount       int    `json:"reportAmount"` //鎶ュ伐鏁伴噺
@@ -103,11 +102,6 @@
 
 func (slf *ReportWorkSearch) SetChannels(channels []int32) *ReportWorkSearch {
 	slf.Channels = channels
-	return slf
-}
-
-func (slf *ReportWorkSearch) SetChannel(channel int32) *ReportWorkSearch {
-	slf.Channel = channel
 	return slf
 }
 

--
Gitblit v1.8.0