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.

69 lines
4.3 KiB

3 years ago
3 years ago
  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package om
  3. import (
  4. "LAPP_LF_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : SerialOrder
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : SerialOrder的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-04-20 13:07:32
  17. *
  18. ******************************************************************************/
  19. type SerialOrder struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"OM_SerialOrder-PlantNr"`
  21. WorkOrderId string `xorm:"pk nvarchar(40) 'WorkOrderId'" json:"OM_SerialOrder-WorkOrderId"`
  22. SerialOrderId string `xorm:"pk nvarchar(100) 'SerialOrderId'" json:"OM_SerialOrder-SerialOrderId"`
  23. SerialId int `xorm:"int 'SerialId' autoincr" json:"OM_SerialOrder-SerialId"`
  24. ArtId string `xorm:"nvarchar(40) 'ArtId' not null" json:"OM_SerialOrder-ArtId"`
  25. OrderType string `xorm:"nvarchar(20) 'OrderType' not null" json:"OM_SerialOrder-OrderType"`
  26. OrderType1 string `xorm:"nvarchar(20) 'OrderType1' not null" json:"OM_SerialOrder-OrderType1"`
  27. OrderType2 string `xorm:"nvarchar(20) 'OrderType2' not null" json:"OM_SerialOrder-OrderType2"`
  28. PlanResourceId string `xorm:"nvarchar(40) 'PlanResourceId' not null" json:"OM_SerialOrder-PlanResourceId"`
  29. UsedResourceId string `xorm:"nvarchar(40) 'UsedResourceId' not null" json:"OM_SerialOrder-UsedResourceId"`
  30. PlanQty float64 `xorm:"float 'PlanQty' not null" json:"OM_SerialOrder-PlanQty"`
  31. QtyUomId string `xorm:"nvarchar(40) 'QtyUomId' not null" json:"OM_SerialOrder-QtyUomId"`
  32. OpTimePerItem float64 `xorm:"float 'OpTimePerItem'" json:"OM_SerialOrder-OpTimePerItem"`
  33. TimeUomId string `xorm:"nvarchar(40) 'TimeUomId' not null" json:"OM_SerialOrder-TimeUomId"`
  34. PlanStartDate grmi.Date `xorm:"date 'PlanStartDate' not null" json:"OM_SerialOrder-PlanStartDate"`
  35. PlanEndDate grmi.Date `xorm:"date 'PlanEndDate' not null" json:"OM_SerialOrder-PlanEndDate"`
  36. SetupStartTime grmi.DateTime `xorm:"datetime 'SetupStartTime' not null" json:"OM_SerialOrder-SetupStartTime"`
  37. SetupEndTime grmi.DateTime `xorm:"datetime 'SetupEndTime' not null" json:"OM_SerialOrder-SetupEndTime"`
  38. PlanStartTime grmi.DateTime `xorm:"datetime 'PlanStartTime' not null" json:"OM_SerialOrder-PlanStartTime"`
  39. PlanEndTime grmi.DateTime `xorm:"datetime 'PlanEndTime' not null" json:"OM_SerialOrder-PlanEndTime"`
  40. ActStartTime grmi.DateTime `xorm:"datetime 'ActStartTime' not null" json:"OM_SerialOrder-ActStartTime"`
  41. ActEndTime grmi.DateTime `xorm:"datetime 'ActEndTime' not null" json:"OM_SerialOrder-ActEndTime"`
  42. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OM_SerialOrder-ProjectId"`
  43. Sort string `xorm:"nvarchar(40) 'Sort' not null" json:"OM_SerialOrder-Sort"`
  44. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OM_SerialOrder-LastModify"`
  45. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OM_SerialOrder-LastUser"`
  46. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OM_SerialOrder-CreateTime"`
  47. SerialOrderStatus SerialOrderStatus `json:"OM_SerialOrder-SerialOrderStatus" xorm:"-"`
  48. }
  49. /******************************************************************************
  50. *
  51. * @Function Name : GetKey
  52. *-----------------------------------------------------------------------------
  53. *
  54. * @Description : 获取实体的主键
  55. *
  56. * @Return Value : 实体的主键
  57. *
  58. * @Author : 代码生成器创建
  59. *
  60. * @Date : 2021-04-20 13:07:32
  61. *
  62. ******************************************************************************/
  63. func (self *SerialOrder) GetKey() core.PK {
  64. return core.PK{self.PlantNr, self.WorkOrderId, self.SerialOrderId}
  65. }