高级排程
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.

47 lines
1.8 KiB

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