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.

62 lines
3.2 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LEIT_PM/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : PrintHead
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : PrintHead的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-20 11:28:44
  17. *
  18. ******************************************************************************/
  19. type PrintHead struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PrintHead-PlantNr"`
  21. PrintHeadId string `xorm:"pk varchar(40) 'PrintHeadId'" json:"PrintHead-PrintHeadId"`
  22. PrinterId string `xorm:"varchar(18) 'PrinterId' not null" json:"PrintHead-PrinterId"`
  23. PrintFileType string `xorm:"varchar(10) 'PrintFileType' not null" json:"PrintHead-PrintFileType"`
  24. PrintEventType string `xorm:"varchar(10) 'PrintEventType' not null" json:"PrintHead-PrintEventType"`
  25. PrintObjId string `xorm:"varchar(40) 'PrintObjId' not null" json:"PrintHead-PrintObjId"`
  26. PrintObjType string `xorm:"varchar(12) 'PrintObjType' not null" json:"PrintHead-PrintObjType"`
  27. Status string `xorm:"varchar(1) 'Status' not null" json:"PrintHead-Status"`
  28. TemplateFile string `xorm:"varchar(40) 'TemplateFile' not null" json:"PrintHead-TemplateFile"`
  29. TermId string `xorm:"varchar(30) 'TermId' not null" json:"PrintHead-TermId"`
  30. WebAddress string `xorm:"varchar(40) 'WebAddress' not null" json:"PrintHead-WebAddress"`
  31. PrintCopies int `xorm:"smallint 'PrintCopies' not null" json:"PrintHead-PrintCopies"`
  32. PrintedTime string `xorm:"varchar(14) 'PrintedTime' not null" json:"PrintHead-PrintedTime"`
  33. PrintedCopies int `xorm:"smallint 'PrintedCopies' not null" json:"PrintHead-PrintedCopies"`
  34. Ival1 int `xorm:"int 'ival1' not null" json:"PrintHead-ival1"`
  35. Ival2 int `xorm:"int 'ival2' not null" json:"PrintHead-ival2"`
  36. Cval1 string `xorm:"varchar(60) 'cval1' not null" json:"PrintHead-cval1"`
  37. Cval2 string `xorm:"varchar(60) 'cval2' not null" json:"PrintHead-cval2"`
  38. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PrintHead-LastModify"`
  39. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PrintHead-LastUser"`
  40. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PrintHead-CreateTime"`
  41. }
  42. /******************************************************************************
  43. *
  44. * @Function Name : GetKey
  45. *-----------------------------------------------------------------------------
  46. *
  47. * @Description : 获取实体的主键
  48. *
  49. * @Return Value : 实体的主键
  50. *
  51. * @Author : 代码生成器创建
  52. *
  53. * @Date : 2021-08-20 11:28:44
  54. *
  55. ******************************************************************************/
  56. func (self *PrintHead) GetKey() core.PK {
  57. return core.PK{self.PlantNr, self.PrintHeadId}
  58. }