广汽安道拓Acura项目MES后台
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.

55 lines
2.5 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : Attribute
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Attribute的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-04-27 14:21:19
  17. *
  18. ******************************************************************************/
  19. type Attribute struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"Attribute-PlantNr"`
  21. AttrCode int `xorm:"pk int 'AttrCode'" json:"Attribute-AttrCode"`
  22. AttrName string `xorm:"nvarchar(100) 'AttrName' not null" json:"Attribute-AttrName"`
  23. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"Attribute-Descr"`
  24. ShortCode string `xorm:"nvarchar(20) 'ShortCode' not null" json:"Attribute-ShortCode"`
  25. AttrType int `xorm:"int 'AttrType' not null" json:"Attribute-AttrType"`
  26. AttrDataType int `xorm:"int 'AttrDataType' not null" json:"Attribute-AttrDataType"`
  27. AttrValType int `xorm:"int 'AttrValType' not null" json:"Attribute-AttrValType"`
  28. ValFormat string `xorm:"nvarchar(100) 'ValFormat' not null" json:"Attribute-ValFormat"`
  29. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Attribute-LastModify"`
  30. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Attribute-LastUser"`
  31. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Attribute-CreateTime"`
  32. AttrValue string `json:"Attribute-AttrValue" xorm:"-"`
  33. Valst []AttributeValst `json:"Valst" xorm:"-"`
  34. }
  35. /******************************************************************************
  36. *
  37. * @Function Name : GetKey
  38. *-----------------------------------------------------------------------------
  39. *
  40. * @Description : 获取实体的主键
  41. *
  42. * @Return Value : 实体的主键
  43. *
  44. * @Author : 代码生成器创建
  45. *
  46. * @Date : 2021-03-23 17:06:57
  47. *
  48. ******************************************************************************/
  49. func (self *Attribute) GetKey() core.PK {
  50. return core.PK{self.PlantNr, self.AttrCode}
  51. }