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

48 lines
2.0 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 : AssetTemplateLst
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : AssetTemplateLst的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-10-08 13:20:42
  17. *
  18. ******************************************************************************/
  19. type AssetTemplateLst struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PM_AssetTemplateLst-PlantNr"`
  21. AssetNr int `xorm:"pk int 'AssetNr'" json:"PM_AssetTemplateLst-AssetNr"`
  22. MainTemplateNr int `xorm:"pk int 'MainTemplateNr'" json:"PM_AssetTemplateLst-MainTemplateNr"`
  23. Pos int `xorm:"int 'Pos' not null" json:"PM_AssetTemplateLst-Pos"`
  24. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PM_AssetTemplateLst-LastModify"`
  25. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PM_AssetTemplateLst-LastUser"`
  26. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PM_AssetTemplateLst-CreateTime"`
  27. }
  28. /******************************************************************************
  29. *
  30. * @Function Name : GetKey
  31. *-----------------------------------------------------------------------------
  32. *
  33. * @Description : 获取实体的主键
  34. *
  35. * @Return Value : 实体的主键
  36. *
  37. * @Author : 代码生成器创建
  38. *
  39. * @Date : 2021-10-08 13:20:42
  40. *
  41. ******************************************************************************/
  42. func (self *AssetTemplateLst) GetKey() core.PK {
  43. return core.PK{self.PlantNr, self.AssetNr, self.MainTemplateNr}
  44. }