| | |
| | | // FinenessCheckItem 纤度检验明细 |
| | | FinenessCheckItem struct { |
| | | gorm.Model |
| | | FinenessRegisterID uint `gorm:"not null;comment:纤度登记表ID" json:"finenessRegisterID"` //纤度登记表ID |
| | | //FinenessCheckID uint `gorm:"not null;comment:纤度检验表ID" json:"finenessCheckID"` //纤度检验表ID |
| | | Position int `json:"position"` //车号 |
| | | FinenessRoundingItems []*FinenessRoundingItem `json:"finenessRoundingItems" gorm:"-"` //纤度列表 |
| | | FinenessRegisterID uint `gorm:"not null;comment:纤度登记表ID" json:"finenessRegisterID"` //纤度登记表ID |
| | | FinenessCheckID uint `gorm:"not null;comment:纤度检验表ID" json:"finenessCheckID"` //纤度检验表ID |
| | | Position int `json:"position"` //车号 |
| | | FinenessRoundingItems []*FinenessRoundingItem `json:"finenessRoundingItems" gorm:"-"` //纤度列表 |
| | | FinenessRounding string `json:"-"` |
| | | Deviation decimal.Decimal `gorm:"type:decimal(12,2);not null;comment:偏差" json:"deviation"` //偏差 |
| | | TotalDeviation decimal.Decimal `gorm:"type:decimal(12,2);not null;comment:总差" json:"totalDeviation"` //总差 |
| | |
| | | ) |
| | | |
| | | func (slf *FinenessCheckItem) TableName() string { |
| | | return "fineness_check_item" |
| | | return "silk_fineness_check_item" |
| | | } |
| | | |
| | | func (slf *FinenessCheckItem) AfterFind(tx *gorm.DB) error { |