diff --git a/model/report.list.go b/model/report.list.go index 42c8c11..54cd13d 100644 --- a/model/report.list.go +++ b/model/report.list.go @@ -99,7 +99,7 @@ type BPList struct { OnlineQuantity float64 `json:"online_quantity"` // 在线数量 ReturnQuantity float64 `json:"return_quantity"` // 回货数量 DieQuantity float64 `json:"die_quantity"` // Die数量 - BPListStock []BPListStock `gorm:"foreignKey:BPListID;references:ID"` + BPListStock []BPListStock `json:"bp_list_stock" gorm:"foreignKey:BPListID;references:ID"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` @@ -133,7 +133,7 @@ type CPList struct { OnlineQuantity float64 `json:"online_quantity"` // 未交数量 ReturnQuantity float64 `json:"return_quantity"` // 回货数量 DieQuantity float64 `json:"die_quantity"` // Die数量 - CPListStock []CPListStock `gorm:"foreignKey:CPListID;references:ID"` + CPListStock []CPListStock `json:"cp_list_stock" gorm:"foreignKey:CPListID;references:ID"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` @@ -166,7 +166,7 @@ type CPShowList struct { OnlineQuantity float64 `json:"online_quantity"` // 未交数量 ReturnQuantity float64 `json:"return_quantity"` // 回货数量 DieQuantity float64 `json:"die_quantity"` // Die数量 - CPListStock []CPListStock `gorm:"foreignKey:CPListID;references:ID"` + CPListStock []CPListStock `json:"cp_list_stock" gorm:"foreignKey:CPListID;references:ID"` TestMachine string `json:"test_machine"` // 测试机台 TestQuantity string `json:"test_quantity"` // 测试数量 FirstPassQuantity string `json:"first_pass_quantity"` // 初测良品数量 @@ -211,7 +211,7 @@ type FTList struct { ReturnQuantity float64 `json:"return_quantity"` // 回货数量 PassQuantity float64 `json:"pass_quantity"` // FT良品 FailQuantity float64 `json:"fail_quantity"` // FT不良品 - FTListStock []FTListStock `gorm:"foreignKey:FTListID;references:ID"` + FTListStock []FTListStock `json:"ft_list_stock" gorm:"foreignKey:FTListID;references:ID"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` @@ -246,7 +246,7 @@ type FTShowList struct { ReturnQuantity float64 `json:"return_quantity"` // 回货数量 FTPassQuantity float64 `json:"ft_pass_quantity"` // FT良品 FTFailQuantity float64 `json:"ft_fail_quantity"` // FT不良品 - FTListStock []FTListStock `gorm:"foreignKey:FTListID;references:ID"` + FTListStock []FTListStock `json:"ft_list_stock" gorm:"foreignKey:FTListID;references:ID"` TestMachine string `json:"test_machine"` // 测试机台 TestQuantity string `json:"test_quantity"` // 测试数量 FirstPassQuantity string `json:"first_pass_quantity"` // 初测良品数量 @@ -288,7 +288,7 @@ type TRList struct { OnlineQuantity float64 `json:"online_quantity"` // 在线数量 PassQuantity float64 `json:"pass_quantity"` // FT良品 FailQuantity float64 `json:"fail_quantity"` // FT不良品 - TRListStock []TRListStock `gorm:"foreignKey:TRListID;references:ID"` + TRListStock []TRListStock `json:"tr_list_stock" gorm:"foreignKey:TRListID;references:ID"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`