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.

61 lines
3.4 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 : OPCComRule
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : OPCComRule的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-13 16:59:07
  17. *
  18. ******************************************************************************/
  19. type OPCComRule struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"OPCComRule-PlantNr"`
  21. OperationId int `xorm:"pk int 'OperationId'" json:"OPCComRule-OperationId"`
  22. RuleId int `xorm:"pk int 'RuleId'" json:"OPCComRule-RuleId"`
  23. WorkPlaceNr int `xorm:"pk int 'WorkPlaceNr'" json:"OPCComRule-WorkPlaceNr"`
  24. PO int `xorm:"int 'PO' not null" json:"OPCComRule-PO"`
  25. StepNo int `xorm:"int 'StepNo' not null" json:"OPCComRule-StepNo"`
  26. StepDesc string `xorm:"nvarchar(100) 'StepDesc' not null" json:"OPCComRule-StepDesc"`
  27. OPCDesc string `xorm:"nvarchar(100) 'OPCDesc' not null" json:"OPCComRule-OPCDesc"`
  28. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OPCComRule-ProjectId"`
  29. ActionType string `xorm:"nvarchar(20) 'ActionType' not null" json:"OPCComRule-ActionType"`
  30. DBlockAddress string `xorm:"nvarchar(40) 'DBlockAddress' not null" json:"OPCComRule-DBlockAddress"`
  31. DBlockValueType string `xorm:"nvarchar(40) 'DBlockValueType' not null" json:"OPCComRule-DBlockValueType"`
  32. DBlockValue string `xorm:"nvarchar(100) 'DBlockValue' not null" json:"OPCComRule-DBlockValue"`
  33. Formula string `xorm:"nvarchar(40) 'Formula' not null" json:"OPCComRule-Formula"`
  34. OperatorSimbol string `xorm:"nvarchar(40) 'OperatorSimbol' not null" json:"OPCComRule-OperatorSimbol"`
  35. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OPCComRule-LastModify"`
  36. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OPCComRule-LastUser"`
  37. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OPCComRule-CreateTime"`
  38. OPCComDetailRuleLi []OPCComDetailRule `xorm:"-" json:"OPCComRule-OPCComDetailRuleLi"`
  39. OPCComValueCheckRule *OPCComValueCheckRule `xorm:"-" json:"OPCComRule-OPCComValueCheckRule"`
  40. }
  41. /******************************************************************************
  42. *
  43. * @Function Name : GetKey
  44. *-----------------------------------------------------------------------------
  45. *
  46. * @Description : 获取实体的主键
  47. *
  48. * @Return Value : 实体的主键
  49. *
  50. * @Author : 代码生成器创建
  51. *
  52. * @Date : 2021-08-13 16:59:07
  53. *
  54. ******************************************************************************/
  55. func (self *OPCComRule) GetKey() core.PK {
  56. return core.PK{self.PlantNr, self.OperationId, self.RuleId, self.WorkPlaceNr}
  57. }