广汽安道拓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.

52 lines
2.3 KiB

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