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.

26 lines
1.3 KiB

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