float64全部改float32
This commit is contained in:
@@ -13,8 +13,8 @@ type PigPurchase struct {
|
||||
PurchaseDate time.Time `gorm:"primaryKey;comment:采购日期"`
|
||||
Supplier string `gorm:"comment:供应商"`
|
||||
Quantity int `gorm:"not null;comment:采购数量"`
|
||||
UnitPrice float64 `gorm:"not null;comment:单价"`
|
||||
TotalPrice float64 `gorm:"not null;comment:总价"`
|
||||
UnitPrice float32 `gorm:"not null;comment:单价"`
|
||||
TotalPrice float32 `gorm:"not null;comment:总价"`
|
||||
Remarks string `gorm:"size:255;comment:备注"`
|
||||
OperatorID uint `gorm:"comment:操作员ID"`
|
||||
}
|
||||
@@ -30,8 +30,8 @@ type PigSale struct {
|
||||
SaleDate time.Time `gorm:"primaryKey;comment:销售日期"`
|
||||
Buyer string `gorm:"comment:购买方"`
|
||||
Quantity int `gorm:"not null;comment:销售数量"`
|
||||
UnitPrice float64 `gorm:"not null;comment:单价"`
|
||||
TotalPrice float64 `gorm:"not null;comment:总价"`
|
||||
UnitPrice float32 `gorm:"not null;comment:单价"`
|
||||
TotalPrice float32 `gorm:"not null;comment:总价"`
|
||||
Remarks string `gorm:"size:255;comment:备注"`
|
||||
OperatorID uint `gorm:"comment:操作员ID"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user