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.

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