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

53 lines
2.7 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 : WorkOrderIdentifyRule
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : WorkOrderIdentifyRule的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-11-30 14:27:09
  17. *
  18. ******************************************************************************/
  19. type WorkOrderIdentifyRule struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"WorkOrderIdentifyRule-PlantNr"`
  21. CollerationBasis string `xorm:"pk nvarchar(50) 'CollerationBasis'" json:"WorkOrderIdentifyRule-CollerationBasis"`
  22. CollerationOperationId int `xorm:"pk int 'CollerationOperationId'" json:"WorkOrderIdentifyRule-CollerationOperationId"`
  23. PO string `xorm:"nvarchar(40) 'PO' not null" json:"WorkOrderIdentifyRule-PO"`
  24. OpenPlan int `xorm:"int 'OpenPlan' not null" json:"WorkOrderIdentifyRule-OpenPlan"`
  25. IdentifyPlan int `xorm:"int 'IdentifyPlan' not null" json:"WorkOrderIdentifyRule-IdentifyPlan"`
  26. CombinePlan int `xorm:"int 'CombinePlan' not null" json:"WorkOrderIdentifyRule-CombinePlan"`
  27. CollerationStepDesc string `xorm:"nvarchar(200) 'CollerationStepDesc' not null" json:"WorkOrderIdentifyRule-CollerationStepDesc"`
  28. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WorkOrderIdentifyRule-LastModify"`
  29. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WorkOrderIdentifyRule-LastUser"`
  30. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WorkOrderIdentifyRule-CreateTime"`
  31. WorkOrderIdentifyRuleDetailLi []WorkOrderIdentifyRuleDetail `xorm:"-" json:"WorkOrderIdentifyRule-WorkOrderIdentifyRuleDetailLi"`
  32. }
  33. /******************************************************************************
  34. *
  35. * @Function Name : GetKey
  36. *-----------------------------------------------------------------------------
  37. *
  38. * @Description : 获取实体的主键
  39. *
  40. * @Return Value : 实体的主键
  41. *
  42. * @Author : 代码生成器创建
  43. *
  44. * @Date : 2021-11-30 14:27:09
  45. *
  46. ******************************************************************************/
  47. func (self *WorkOrderIdentifyRule) GetKey() core.PK {
  48. return core.PK{self.PlantNr, self.CollerationBasis, self.CollerationOperationId}
  49. }