157 lines
5.5 KiB
Go
157 lines
5.5 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
type TcSfcFile struct {
|
|
TcSfc01 string `json:"tc_sfc01"` // PBI
|
|
TcSfc02 time.Time `json:"tc_sfc02"` // 下单日期
|
|
TcSfc04 string `json:"tc_sfc04"` // 厂商编号
|
|
PmcFile PmcFile `gorm:"foreignKey:Pmc01;references:TcSfc04"`
|
|
TcSfc08 string `json:"tc_sfc08"` // 加工类型
|
|
TcSfdFile []TcSfdFile `gorm:"foreignKey:TcSfd01;references:TcSfc01"`
|
|
TcSfeFile []TcSfeFile `gorm:"foreignKey:TcSfe01;references:TcSfc01"`
|
|
}
|
|
|
|
func (TcSfcFile) TableName() string { return "tc_sfc_file" }
|
|
|
|
type TcSfdFile struct {
|
|
TcSfd01 string `json:"tc_sfd01"` // PBI
|
|
TcSfd02 int `json:"tc_sfd02"` // 回货项次
|
|
TcSfd03 string `json:"tc_sfd03"` // 料号
|
|
ImaFile ImaFile `gorm:"foreignKey:Ima01;references:TcSfd03"`
|
|
TcImbFile TcImbFile `gorm:"foreignKey:TcImb01;references:TcSfd03"`
|
|
TcSfd05 float64 `json:"tc_sfd05"` // 数量
|
|
TcSfd06 string `json:"tc_sfd06"` // 批号
|
|
TcSfd13 string `json:"tc_sfd13"` // 委外工单号
|
|
SfbFile SfbFile `gorm:"foreignKey:Sfb01;references:TcSfd13"`
|
|
RvbFile []RvbFile `gorm:"foreignKey:Rvb34;references:TcSfd13"`
|
|
//RvbFile []RvbFile `gorm:"foreignKey:Rvb34;references:TcSfd13"`
|
|
TcSfd14 string `json:"tc_sfd14"` // 委外采购单号
|
|
RvaFile RvaFile `gorm:"foreignKey:Rva02;references:TcSfd14"`
|
|
TcSfdUd02 string `json:"tc_sfdud02" gorm:"column:TC_SFDUD02"` // 丝印
|
|
}
|
|
|
|
func (TcSfdFile) TableName() string { return "tc_sfd_file" }
|
|
|
|
type TcSfeFile struct {
|
|
TcSfe01 string `json:"tc_sfe01"` // PBI
|
|
TcSfe02 int `json:"tc_sfe02"` // 回货项次
|
|
TcSfe04 string `json:"tc_sfe04"` // 料号
|
|
ImaFile ImaFile `gorm:"foreignKey:Ima01;references:TcSfe04"`
|
|
TcSfe10 string `json:"tc_sfe10"` // 晶圆批号
|
|
TcSfe12 float64 `json:"tc_sfe12"` // 发料数量
|
|
TcSfe14 float64 `json:"tc_sfe14"` // 参考数量
|
|
TcSfe15 string `json:"tc_sfe15"` // 片号
|
|
TcSfe17 string `json:"tc_sfe17"` // 是否主芯
|
|
}
|
|
|
|
func (TcSfeFile) TableName() string { return "tc_sfe_file" }
|
|
|
|
type TcImbFile struct {
|
|
TcImb01 string `json:"tc_imb01"` // 料号
|
|
TcImb03 string `json:"tc_imb03"` // 测试程序
|
|
TcImb04 string `json:"tc_imb04"` // 测试程序版本
|
|
}
|
|
|
|
func (TcImbFile) TableName() string { return "tc_imb_file" }
|
|
|
|
type ImaFile struct {
|
|
Ima01 string `json:"ima01"` // 料号
|
|
Ima02 string `json:"ima02"` // 型号
|
|
Ima021 string `json:"ima021"` // 规格
|
|
}
|
|
|
|
func (ImaFile) TableName() string { return "ima_file" }
|
|
|
|
type PmmFile struct {
|
|
Pmm01 string `json:"pmm01"` // 采购单号
|
|
Pmm04 time.Time `json:"pmm04"` // 采购日期
|
|
Pmm09 string `json:"pmm09"` // 供应厂商编号
|
|
Pmm25 string `json:"pmm25"` // 状态码
|
|
PmnFile []PmnFile `gorm:"foreignKey:Pmn01;references:Pmm01"`
|
|
PmcFile PmcFile `gorm:"foreignKey:Pmc01;references:Pmm09"`
|
|
RvbFile []RvbFile `gorm:"foreignKey:Rvb04;references:Pmm01"`
|
|
}
|
|
|
|
func (PmmFile) TableName() string { return "pmm_file" }
|
|
|
|
type PmnFile struct {
|
|
Pmn01 string `json:"pmn01"`
|
|
//PmmFile PmmFile `json:"pmm_file" gorm:"foreignKey:Pmm01;references:Pmn01"`
|
|
Pmn02 string `json:"pmn02"`
|
|
Pmn04 string `json:"pmn04"` // 料件编号
|
|
ImaFile ImaFile `gorm:"foreignKey:Ima01;references:Pmn04"`
|
|
Pmn20 float64 `json:"pmn20"` // 采购量
|
|
Pmn53 float64 `json:"pmn53"` // 已交量
|
|
Pmn82 string `json:"pmn82"` // 采购数量
|
|
Pmn041 string `json:"pmn041"` // 品名规格
|
|
}
|
|
|
|
func (PmnFile) TableName() string { return "pmn_file" }
|
|
|
|
type RvaFile struct {
|
|
Rva01 string `json:"rva01"` // 收货单号
|
|
IddFile []IddFile `gorm:"foreignKey:Idd10;references:Rva01"`
|
|
RvbFile []RvbFile `gorm:"foreignKey:Rvb01;references:Rva01"`
|
|
Rva02 string `json:"rva02"` // 采购单号
|
|
Rva06 time.Time `json:"rva06"` //收货日期
|
|
}
|
|
|
|
func (RvaFile) TableName() string { return "rva_file" }
|
|
|
|
type RvvFile struct {
|
|
Rvv36 string `json:"rvv36"` // 采购单号
|
|
Rvv84 string `json:"rvv84"` // 数量
|
|
RvaFile []RvaFile `gorm:"foreignKey:Rva02;references:Rvv36"`
|
|
}
|
|
|
|
func (RvvFile) TableName() string { return "rvv_file" }
|
|
|
|
type PmcFile struct {
|
|
Pmc01 string `json:"pmc01"` // 厂商编号
|
|
Pmc02 string `json:"pmc02"` // 厂商类型
|
|
Pmc03 string `json:"pmc03"` // 厂商名称
|
|
}
|
|
|
|
func (PmcFile) TableName() string { return "pmc_file" }
|
|
|
|
type RvbFile struct {
|
|
Rvb01 string `json:"rvb01"` // 收货单号
|
|
RvaFile RvaFile `gorm:"foreignKey:Rva01;references:Rvb01"`
|
|
IddFile []IddFile `gorm:"foreignKey:Idd10;references:Rvb01"`
|
|
Rvb02 string `json:"rvb02"` // 项次
|
|
Rvb03 string `json:"rvb03"`
|
|
Rvb04 string `json:"rvb04"` // 采购单号
|
|
Rvb05 string `json:"rvb05"`
|
|
ImaFile ImaFile `json:"ima_file" gorm:"foreignKey:Ima01;references:Rvb05"`
|
|
Rvb12 time.Time `json:"rvb12"` // 收货日期
|
|
Rvb29 float64 `json:"rvb29"` // 退货量
|
|
Rvb30 float64 `json:"rvb30"` // 入库数
|
|
Rvb34 string `json:"rvb34"` // 委外单号
|
|
Rvb38 string `json:"rvb38"` // 批号
|
|
Rvb82 float64 `json:"rvb82"` // 收货数量
|
|
Rvb85 float64 `json:"rvb85"` // DIE数量
|
|
}
|
|
|
|
func (RvbFile) TableName() string { return "rvb_file" }
|
|
|
|
type IddFile struct {
|
|
Idd01 string `json:"idd01"` // 料号
|
|
Idd04 string `json:"idd04"` // 批号
|
|
Idd05 string `json:"idd05"` // 片号
|
|
Idd06 string `json:"idd06"` // 良品/不良品
|
|
Idd10 string `json:"idd10"` // 收货单号
|
|
Idd11 string `json:"idd11"` // 收货项次
|
|
Idd13 float64 `json:"idd13"` // 数量
|
|
Idd16 string `json:"idd16"` // 批次
|
|
}
|
|
|
|
func (IddFile) TableName() string { return "idd_file" }
|
|
|
|
type SfbFile struct {
|
|
Sfb01 string `json:"sfb01"`
|
|
Sfb04 string `json:"sfb04"`
|
|
}
|
|
|
|
func (SfbFile) TableName() string { return "sfb_file" }
|