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