From ceeb6be3ca049ce1301b49a1f695da2c4151e3de Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期五, 12 四月 2024 16:11:15 +0800 Subject: [PATCH] 添加落丝桶数选中字段 --- controllers/request/yield_register_request.go | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/controllers/request/yield_register_request.go b/controllers/request/yield_register_request.go index 30033a9..066b152 100644 --- a/controllers/request/yield_register_request.go +++ b/controllers/request/yield_register_request.go @@ -29,6 +29,9 @@ FallingSilkBucketOne decimal.Decimal `json:"fallingSilkBucketOne"` //钀戒笣妗舵暟1 FallingSilkBucketTwo decimal.Decimal `json:"fallingSilkBucketTwo"` //钀戒笣妗舵暟2 FallingSilkBucketThree decimal.Decimal `json:"fallingSilkBucketThree"` //钀戒笣妗舵暟3 + SelectOne bool `json:"selectOne"` //钀戒笣妗舵暟1閫変腑 + SelectTwo bool `json:"selectTwo"` //钀戒笣妗舵暟2閫変腑 + SelectThree bool `json:"selectThree"` //钀戒笣妗舵暟3閫変腑 TheorySilkAmount decimal.Decimal `json:"theorySilkAmount"` //鐞嗚涓濋噺 HourYield decimal.Decimal `json:"hourYield"` //鍙版椂浜ч噺 OneBack string `json:"oneBack"` //绗竴鍥� @@ -52,9 +55,21 @@ YieldRegisterId uint `json:"yieldRegisterId"` //浜ч噺鐧昏琛╥d CarNumber int `json:"carNumber"` //杞﹀彿 Circle int `json:"circle"` //鍥炴暟 - PieceNumber int `json:"pieceNumber"` //鐗囨暟 - Value decimal.Decimal `json:"value"` //鍊� AllYield decimal.Decimal `json:"allYield"` //浜ч噺 OneYield decimal.Decimal `json:"oneYield"` //鍙颁骇 Reelingdiscount string `json:"reelingdiscount"` //缂姌 + PieceNumbers []PieceInfo `json:"pieceNumbers"` //鐗囨暟淇℃伅 +} + +type PieceInfo struct { + PieceNumber int `json:"pieceNumber"` + Value decimal.Decimal `json:"value"` +} + +type ChangeYieldRegister struct { + CreateTime string `json:"createTime"` //鍒涘缓鏃堕棿 + MarketId uint `json:"marketId"` //搴勫彛id + WorkshopId uint `json:"workshopId"` //杞﹂棿id + GroupNumber int `json:"groupNumber"` //缁勫埆 + Spec string `json:"spec"` //瑙勬牸 } -- Gitblit v1.8.0