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.

50 lines
2.0 KiB

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