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.

25 lines
1.2 KiB

  1. package base
  2. import (
  3. "leit.com/LAPP_GAAS_GFrame/grmi"
  4. "xorm.io/core"
  5. )
  6. //AttributeValst的实体映射
  7. type AttributeValst struct {
  8. PlantNr int `xorm:"pk int 'PlantNr'" json:"AttributeValst-PlantNr"`
  9. AttrCode int `xorm:"pk int 'AttrCode'" json:"AttributeValst-AttrCode"`
  10. Pos int `xorm:"pk int 'Pos'" json:"AttributeValst-Pos"`
  11. AttrValue string `xorm:"nvarchar(100) 'AttrValue' not null" json:"AttributeValst-AttrValue"`
  12. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"AttributeValst-Descr"`
  13. ShortCode string `xorm:"nvarchar(20) 'ShortCode' not null" json:"AttributeValst-ShortCode"`
  14. Valformat string `xorm:"nvarchar(40) 'Valformat' not null" json:"AttributeValst-Valformat"`
  15. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AttributeValst-LastModify"`
  16. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AttributeValst-LastUser"`
  17. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AttributeValst-CreateTime"`
  18. }
  19. //获取AttributeValst的主键
  20. func (self *AttributeValst) GetKey() core.PK {
  21. return core.PK{self.PlantNr, self.AttrCode, self.Pos}
  22. }