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.

52 lines
2.4 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package pm
  3. import (
  4. "LAPP_LF_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-13 11:00:13
  17. *
  18. ******************************************************************************/
  19. type WorkOrderStatus struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PM_WorkOrderStatus-PlantNr"`
  21. WorkOrderRecNr int `xorm:"pk int 'WorkOrderRecNr'" json:"PM_WorkOrderStatus-WorkOrderRecNr"`
  22. MaintWorkOrderId string `xorm:"varchar(18) 'MaintWorkOrderId' not null" json:"PM_WorkOrderStatus-MaintWorkOrderId"`
  23. Operator int `xorm:"int 'Operator' not null" json:"PM_WorkOrderStatus-Operator"`
  24. WorkOrderBagType string `xorm:"varchar(14) 'WorkOrderBagType' not null" json:"PM_WorkOrderStatus-WorkOrderBagType"`
  25. StatusFrom int `xorm:"int 'StatusFrom' not null" json:"PM_WorkOrderStatus-StatusFrom"`
  26. StatusTo int `xorm:"int 'StatusTo' not null" json:"PM_WorkOrderStatus-StatusTo"`
  27. OperateTime grmi.DateTime `xorm:"datetime 'OperateTime' not null" json:"PM_WorkOrderStatus-OperateTime"`
  28. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PM_WorkOrderStatus-LastModify"`
  29. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PM_WorkOrderStatus-LastUser"`
  30. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PM_WorkOrderStatus-CreateTime"`
  31. }
  32. /******************************************************************************
  33. *
  34. * @Function Name : GetKey
  35. *-----------------------------------------------------------------------------
  36. *
  37. * @Description : 获取实体的主键
  38. *
  39. * @Return Value : 实体的主键
  40. *
  41. * @Author : 代码生成器创建
  42. *
  43. * @Date : 2021-04-13 11:00:13
  44. *
  45. ******************************************************************************/
  46. func (self *WorkOrderStatus) GetKey() core.PK {
  47. return core.PK{self.PlantNr, self.WorkOrderRecNr}
  48. }