广汽安道拓Acura项目MES后台
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.

64 lines
4.1 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : OPCMonitorComRule
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : OPCMonitorComRule的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-11-25 09:48:01
  17. *
  18. ******************************************************************************/
  19. type OPCMonitorComRule struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"OPCMonitorComRule-PlantNr"`
  21. OperationId int `xorm:"pk int 'OperationId'" json:"OPCMonitorComRule-OperationId"`
  22. WorkPlaceNr int `xorm:"pk int 'WorkPlaceNr'" json:"OPCMonitorComRule-WorkPlaceNr"`
  23. RuleId int `xorm:"pk int 'RuleId'" json:"OPCMonitorComRule-RuleId"`
  24. PO string `xorm:"nvarchar(40) 'PO' not null" json:"OPCMonitorComRule-PO"`
  25. StepNo int `xorm:"int 'StepNo' not null" json:"OPCMonitorComRule-StepNo"`
  26. StepDesc string `xorm:"nvarchar(100) 'StepDesc' not null" json:"OPCMonitorComRule-StepDesc"`
  27. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OPCMonitorComRule-ProjectId"`
  28. ActionType string `xorm:"nvarchar(20) 'ActionType' not null" json:"OPCMonitorComRule-ActionType"`
  29. DBlockAddress string `xorm:"nvarchar(40) 'DBlockAddress' not null" json:"OPCMonitorComRule-DBlockAddress"`
  30. DBlockValueType string `xorm:"nvarchar(40) 'DBlockValueType' not null" json:"OPCMonitorComRule-DBlockValueType"`
  31. Formula string `xorm:"nvarchar(40) 'Formula' not null" json:"OPCMonitorComRule-Formula"`
  32. OperatorSimbol string `xorm:"nvarchar(40) 'OperatorSimbol' not null" json:"OPCMonitorComRule-OperatorSimbol"`
  33. DBlockValue string `xorm:"nvarchar(100) 'DBlockValue' not null" json:"OPCMonitorComRule-DBlockValue"`
  34. OKGotoRuleId int `xorm:"int 'OKGotoRuleId' not null" json:"OPCMonitorComRule-OKGotoRuleId"`
  35. OKDelay int `xorm:"int 'OKDelay' not null" json:"OPCMonitorComRule-OKDelay"`
  36. NOKGotoRuleId int `xorm:"int 'NOKGotoRuleId' not null" json:"OPCMonitorComRule-NOKGotoRuleId"`
  37. NOKDelay int `xorm:"int 'NOKDelay' not null" json:"OPCMonitorComRule-NOKDelay"`
  38. DBlockDesc string `xorm:"nvarchar(100) 'DBlockDesc' not null" json:"OPCMonitorComRule-DBlockDesc"`
  39. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OPCMonitorComRule-LastModify"`
  40. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OPCMonitorComRule-LastUser"`
  41. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OPCMonitorComRule-CreateTime"`
  42. OPCMonitorComDetailRuleLi []OPCMonitorComDetailRule `xorm:"-" json:"OPCMonitorComRule-OPCMonitorComDetailRuleLi"`
  43. }
  44. /******************************************************************************
  45. *
  46. * @Function Name : GetKey
  47. *-----------------------------------------------------------------------------
  48. *
  49. * @Description : 获取实体的主键
  50. *
  51. * @Return Value : 实体的主键
  52. *
  53. * @Author : 代码生成器创建
  54. *
  55. * @Date : 2021-11-25 09:48:01
  56. *
  57. ******************************************************************************/
  58. func (self *OPCMonitorComRule) GetKey() core.PK {
  59. return core.PK{self.PlantNr, self.OperationId, self.WorkPlaceNr, self.RuleId}
  60. }