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

51 lines
2.5 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package om
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : WorkOrderStatus
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : WorkOrderStatus的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-04-19 14:04:47
  17. *
  18. ******************************************************************************/
  19. type WorkOrderStatus struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"OM_WorkOrderStatus-PlantNr"`
  21. WorkOrderId string `xorm:"pk nvarchar(40) 'WorkOrderId'" json:"OM_WorkOrderStatus-WorkOrderId"`
  22. Status int `xorm:"int 'Status' not null" json:"OM_WorkOrderStatus-Status"`
  23. TriggerEvent string `xorm:"nvarchar(40) 'TriggerEvent' not null" json:"OM_WorkOrderStatus-TriggerEvent"`
  24. TriggerObjectId string `xorm:"nvarchar(40) 'TriggerObjectId' not null" json:"OM_WorkOrderStatus-TriggerObjectId"`
  25. TriggerSubObjectId string `xorm:"nvarchar(40) 'TriggerSubObjectId' not null" json:"OM_WorkOrderStatus-TriggerSubObjectId"`
  26. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OM_WorkOrderStatus-LastModify"`
  27. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OM_WorkOrderStatus-LastUser"`
  28. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OM_WorkOrderStatus-CreateTime"`
  29. WorkOrderStatusRecLst []WorkOrderStatusRecLst `json:"OM_WorkOrderStatus-WorkOrderStatusRecLst" xorm:"-"`
  30. }
  31. /******************************************************************************
  32. *
  33. * @Function Name : GetKey
  34. *-----------------------------------------------------------------------------
  35. *
  36. * @Description : 获取实体的主键
  37. *
  38. * @Return Value : 实体的主键
  39. *
  40. * @Author : 代码生成器创建
  41. *
  42. * @Date : 2021-04-19 14:04:47
  43. *
  44. ******************************************************************************/
  45. func (self *WorkOrderStatus) GetKey() core.PK {
  46. return core.PK{self.PlantNr, self.WorkOrderId}
  47. }