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.

66 lines
3.7 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 : WorkOrder
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : WorkOrder的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-04-13 11:00:13
  17. *
  18. ******************************************************************************/
  19. type WorkOrder struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PM_WorkOrder-PlantNr"`
  21. MaintWorkOrderId string `xorm:"pk varchar(18) 'MaintWorkOrderId'" json:"PM_WorkOrder-MaintWorkOrderId"`
  22. MainServiceNr string `xorm:"varchar(20) 'MainServiceNr'" json:"PM_WorkOrder-MainServiceNr"`
  23. Descr string `xorm:"varchar(40) 'Descr' not null" json:"PM_WorkOrder-Descr"`
  24. Status int `xorm:"int 'Status' not null" json:"PM_WorkOrder-Status"`
  25. Priority int `xorm:"smallint 'Priority' not null" json:"PM_WorkOrder-Priority"`
  26. AssetNr int `xorm:"int 'AssetNr' not null" json:"PM_WorkOrder-AssetNr"`
  27. PlBegDat grmi.Date `xorm:"date 'PlBegDat' not null" json:"PM_WorkOrder-PlBegDat"`
  28. PlEndDat grmi.Date `xorm:"date 'PlEndDat' not null" json:"PM_WorkOrder-PlEndDat"`
  29. NeedSchedule int `xorm:"int 'NeedSchedule' not null" json:"PM_WorkOrder-NeedSchedule"`
  30. MainTimeLen float64 `xorm:"decimal 'MainTimeLen' not null" json:"PM_WorkOrder-MainTimeLen"`
  31. TimeUnit string `xorm:"varchar(5) 'TimeUnit' not null" json:"PM_WorkOrder-TimeUnit"`
  32. SchedBegTime grmi.DateTime `xorm:"datetime 'SchedBegTime' not null" json:"PM_WorkOrder-SchedBegTime"`
  33. SchedEndTime grmi.DateTime `xorm:"datetime 'SchedEndTime' not null" json:"PM_WorkOrder-SchedEndTime"`
  34. ActBegTime grmi.DateTime `xorm:"datetime 'ActBegTime' not null" json:"PM_WorkOrder-ActBegTime"`
  35. ActEndTime grmi.DateTime `xorm:"datetime 'ActEndTime' not null" json:"PM_WorkOrder-ActEndTime"`
  36. AssignedTo string `xorm:"varchar(1) 'AssignedTo' not null" json:"PM_WorkOrder-AssignedTo"`
  37. Operator int `xorm:"int 'Operator' not null" json:"PM_WorkOrder-Operator"`
  38. Vendor int `xorm:"int 'Vendor' not null" json:"PM_WorkOrder-Vendor"`
  39. MaintType string `xorm:"varchar(14) 'MaintType' not null" json:"PM_WorkOrder-MaintType"`
  40. CostCenterId string `xorm:"varchar(12) 'CostCenterId' not null" json:"PM_WorkOrder-CostCenterId"`
  41. PoId string `xorm:"varchar(18) 'PoId' not null" json:"PM_WorkOrder-PoId"`
  42. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PM_WorkOrder-LastModify"`
  43. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PM_WorkOrder-LastUser"`
  44. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PM_WorkOrder-CreateTime"`
  45. }
  46. /******************************************************************************
  47. *
  48. * @Function Name : GetKey
  49. *-----------------------------------------------------------------------------
  50. *
  51. * @Description : 获取实体的主键
  52. *
  53. * @Return Value : 实体的主键
  54. *
  55. * @Author : 代码生成器创建
  56. *
  57. * @Date : 2021-04-13 11:00:13
  58. *
  59. ******************************************************************************/
  60. func (self *WorkOrder) GetKey() core.PK {
  61. return core.PK{self.PlantNr, self.MaintWorkOrderId}
  62. }