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.

54 lines
2.4 KiB

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