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.

62 lines
3.7 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 : OPCComValueCheckRuleDetail
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : OPCComValueCheckRuleDetail的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-09-09 10:59:52
  17. *
  18. ******************************************************************************/
  19. type OPCComValueCheckRuleDetail struct {
  20. Id int `xorm:"pk int 'Id'" json:"OPCComValueCheckRuleDetail-Id"`
  21. PlantNr int `xorm:"pk int 'PlantNr'" json:"OPCComValueCheckRuleDetail-PlantNr"`
  22. DetailId int `xorm:"pk int 'DetailId'" json:"OPCComValueCheckRuleDetail-DetailId"`
  23. ObjectPO int `xorm:"pk int 'ObjectPO'" json:"OPCComValueCheckRuleDetail-ObjectPO"`
  24. CheckOperationId int `xorm:"int 'CheckOperationId' not null" json:"OPCComValueCheckRuleDetail-CheckOperationId"`
  25. CheckPO int `xorm:"int 'CheckPO' not null" json:"OPCComValueCheckRuleDetail-CheckPO"`
  26. CheckStepNo int `xorm:"int 'CheckStepNo' not null" json:"OPCComValueCheckRuleDetail-CheckStepNo"`
  27. CheckStepDesc string `xorm:"nvarchar(100) 'CheckStepDesc' not null" json:"OPCComValueCheckRuleDetail-CheckStepDesc"`
  28. CheckPos int `xorm:"int 'CheckPos' not null" json:"OPCComValueCheckRuleDetail-CheckPos"`
  29. CheckProjectId string `xorm:"nvarchar(40) 'CheckProjectId' not null" json:"OPCComValueCheckRuleDetail-CheckProjectId"`
  30. CheckWorkPlaceNr int `xorm:"int 'CheckWorkPlaceNr' not null" json:"OPCComValueCheckRuleDetail-CheckWorkPlaceNr"`
  31. ObjectStepNo int `xorm:"int 'ObjectStepNo' not null" json:"OPCComValueCheckRuleDetail-ObjectStepNo"`
  32. ObjectPos int `xorm:"int 'ObjectPos' not null" json:"OPCComValueCheckRuleDetail-ObjectPos"`
  33. ObjectOPCDesc string `xorm:"nvarchar(100) 'ObjectOPCDesc' not null" json:"OPCComValueCheckRuleDetail-ObjectOPCDesc"`
  34. OperatorSimbol string `xorm:"nvarchar(40) 'OperatorSimbol' not null" json:"OPCComValueCheckRuleDetail-OperatorSimbol"`
  35. CheckValue string `xorm:"nvarchar(100) 'CheckValue' not null" json:"OPCComValueCheckRuleDetail-CheckValue"`
  36. DoWhenOK string `xorm:"nvarchar(10) 'DoWhenOK' not null" json:"OPCComValueCheckRuleDetail-DoWhenOK"`
  37. DoWhenNOK string `xorm:"nvarchar(10) 'DoWhenNOK' not null" json:"OPCComValueCheckRuleDetail-DoWhenNOK"`
  38. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OPCComValueCheckRuleDetail-LastModify"`
  39. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OPCComValueCheckRuleDetail-LastUser"`
  40. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OPCComValueCheckRuleDetail-CreateTime"`
  41. }
  42. /******************************************************************************
  43. *
  44. * @Function Name : GetKey
  45. *-----------------------------------------------------------------------------
  46. *
  47. * @Description : 获取实体的主键
  48. *
  49. * @Return Value : 实体的主键
  50. *
  51. * @Author : 代码生成器创建
  52. *
  53. * @Date : 2021-09-09 10:59:52
  54. *
  55. ******************************************************************************/
  56. func (self *OPCComValueCheckRuleDetail) GetKey() core.PK {
  57. return core.PK{self.Id, self.PlantNr, self.DetailId}
  58. }