From 92bd52259879ffb1a352e154c9a613e873c64105 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 09 四月 2024 14:02:06 +0800
Subject: [PATCH] fix

---
 models/fineness.go |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/models/fineness.go b/models/fineness.go
index bed5a7a..39cda4f 100644
--- a/models/fineness.go
+++ b/models/fineness.go
@@ -17,11 +17,12 @@
 		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"`                         //鎬诲洖鏁�
+		Circle        uint8           `gorm:"not null;default:0;comment:鍥炴暟" json:"circle"`                     //鍥炴暟
+		TotalCircle   uint8           `gorm:"not null;default:0;comment:鎬诲洖鏁�" json:"totalCircle"`               //鎬诲洖鏁�
 		FinenessList  []FinenessItem  `gorm:"foreignkey:FinenessRegisterID;references:ID" 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"`
+		Position      int             `gorm:"not null;default:0;comment:杞﹀彿" json:"position"` //鏈�鍚庝竴涓溅鍙�
 	}
 	FinenessRegisterSearch struct {
 		FinenessRegister

--
Gitblit v1.8.0