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