广汽安道拓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.

55 lines
3.1 KiB

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