From 2234e8fa97e85e1e69a6f970416602f283e09df6 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期日, 07 四月 2024 21:57:28 +0800
Subject: [PATCH] 解决联调问题,增加纤度检验相关接口

---
 controllers/request/fineness.go |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/controllers/request/fineness.go b/controllers/request/fineness.go
index 76757a5..41da3f1 100644
--- a/controllers/request/fineness.go
+++ b/controllers/request/fineness.go
@@ -5,27 +5,28 @@
 )
 
 type AddFinenessRegister struct {
-	ID            uint            `json:"id"`                                                          //id 娣诲姞鏃朵紶0
-	Number        string          `gorm:"type:varchar(255);not null;comment:缂栧彿" json:"number"`         //缂栧彿
-	FinishDate    string          `gorm:"type:varchar(255);not null;comment:钀戒笣鏃堕棿" json:"finishDate"`   //钀戒笣鏃堕棿
-	Workshop      string          `gorm:"type:varchar(255);not null;comment:杞﹂棿" json:"name"`           //杞﹂棿
-	WorkshopGroup string          `gorm:"type:varchar(255);not null;comment:杞︾粍" json:"workshopGroup"`  //杞︾粍
-	Market        string          `gorm:"type:varchar(255);not null;comment:搴勫彛" json:"market"`         //搴勫彛
-	Spec          string          `gorm:"type:varchar(255);not null;comment:瑙勬牸" json:"spec"`           //瑙勬牸
-	Circle        uint8           `gorm:"not null;comment:鍥炴暟" json:"circle"`                           //鍥炴暟
-	TotalCircle   uint8           `gorm:"not null;comment:鎬诲洖鏁�" json:"totalCircle"`                     //鎬诲洖鏁�
-	FinenessList  []FinenessItem  `json:"finenessList"`                                                //绾ゅ害鏁扮粍
-	SumFineness   decimal.Decimal `gorm:"type:decimal(12,2);not null;comment:鍚堣绾ゅ害" json:"sumFineness"` //鍚堣绾ゅ害
-	SumQuantity   decimal.Decimal `gorm:"type:decimal(12,2);not null;comment:鍚堣鏁伴噺" json:"sumQuantity"` //鍚堣鏁伴噺
+	ID            uint            `json:"id"`                                                              //id 娣诲姞鏃朵紶0
+	Number        string          `gorm:"type:varchar(255);not null;comment:缂栧彿" json:"number"`             //缂栧彿
+	FinishDate    string          `gorm:"type:varchar(255);not null;comment:钀戒笣鏃堕棿" json:"finishDate"`       //钀戒笣鏃堕棿
+	Workshop      string          `gorm:"type:varchar(255);not null;comment:杞﹂棿" json:"name"`               //杞﹂棿
+	WorkshopGroup int             `gorm:"type:int(11);not null;default:0;comment:杞︾粍" json:"workshopGroup"` //杞︾粍
+	Market        string          `gorm:"type:varchar(255);not null;comment:搴勫彛" json:"market"`             //搴勫彛
+	Spec          string          `gorm:"type:varchar(255);not null;comment:瑙勬牸" json:"spec"`               //瑙勬牸
+	Circle        uint8           `gorm:"not null;comment:鍥炴暟" json:"circle"`                               //鍥炴暟
+	TotalCircle   uint8           `gorm:"not null;comment:鎬诲洖鏁�" json:"totalCircle"`                         //鎬诲洖鏁�
+	FinenessList  []FinenessItem  `json:"finenessList"`                                                    //绾ゅ害鏁扮粍
+	SumFineness   decimal.Decimal `gorm:"type:decimal(12,2);not null;comment:鍚堣绾ゅ害" json:"sumFineness"`     //鍚堣绾ゅ害
+	SumQuantity   decimal.Decimal `gorm:"type:decimal(12,2);not null;comment:鍚堣鏁伴噺" json:"sumQuantity"`     //鍚堣鏁伴噺
 }
 
 type FinenessItem struct {
 	Position int8            `json:"position"` //杞﹀彿
-	Fineness decimal.Decimal `json:"fineness"` //绾ゅ害
+	Fineness float32         `json:"fineness"` //绾ゅ害
 	Quantity decimal.Decimal `json:"quantity"` //鏁伴噺
 	Sum      decimal.Decimal `json:"sum"`      //鍚堣
 }
 
 type GetFinenessRegisterList struct {
 	PageInfo
+	Keyword string `json:"keyword" form:"keyword"`
 }

--
Gitblit v1.8.0