GAAS 广汽安道拓GFrame金属件MOM项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

38 lines
2.3 KiB

package base
import (
"leit.com/LAPP_GAAS_GFrame/grmi"
"xorm.io/core"
)
//Plant的实体映射
type Plant struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"Plant-PlantNr"`
Status int `xorm:"int 'Status' not null" json:"Plant-Status"`
Name1 string `xorm:"nvarchar(100) 'Name1' not null" json:"Plant-Name1"`
Name2 string `xorm:"nvarchar(100) 'Name2' not null" json:"Plant-Name2"`
Logo string `xorm:"nvarchar(100) 'Logo' not null" json:"Plant-Logo"`
Abrevname string `xorm:"nvarchar(40) 'Abrevname' not null" json:"Plant-Abrevname"`
Country string `xorm:"nvarchar(40) 'Country' not null" json:"Plant-Country"`
Street string `xorm:"nvarchar(100) 'Street' not null" json:"Plant-Street"`
Address string `xorm:"nvarchar(100) 'Address' not null" json:"Plant-Address"`
PostCode string `xorm:"nvarchar(8) 'PostCode' not null" json:"Plant-PostCode"`
Phone string `xorm:"nvarchar(20) 'Phone' not null" json:"Plant-Phone"`
Fax string `xorm:"nvarchar(20) 'Fax' not null" json:"Plant-Fax"`
StartYear int `xorm:"int 'StartYear' not null" json:"Plant-StartYear"`
EndYear int `xorm:"int 'EndYear' not null" json:"Plant-EndYear"`
CompanyTitle string `xorm:"nvarchar(100) 'CompanyTitle' not null" json:"Plant-CompanyTitle"`
CompanyAddress string `xorm:"nvarchar(100) 'CompanyAddress' not null" json:"Plant-CompanyAddress"`
TaxId string `xorm:"nvarchar(100) 'TaxId' not null" json:"Plant-TaxId"`
AccountBank string `xorm:"nvarchar(100) 'AccountBank' not null" json:"Plant-AccountBank"`
AccountNr int `xorm:"int 'AccountNr' not null" json:"Plant-AccountNr"`
Currency string `xorm:"nvarchar(20) 'Currency' not null" json:"Plant-Currency"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Plant-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Plant-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Plant-CreateTime"`
}
//获取Plant的主键
func (self *Plant) GetKey() core.PK {
return core.PK{self.PlantNr}
}