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

100 lines
7.7 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package pln
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : CustOrder
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : CustOrder的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2022-05-27 14:54:54
  17. *
  18. ******************************************************************************/
  19. type CustOrder struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PLN_CustOrder-PlantNr"`
  21. CustOrderId string `xorm:"pk nvarchar(40) 'CustOrderId'" json:"PLN_CustOrder-CustOrderId"`
  22. ProductFamilyId string `xorm:"nvarchar(40) 'ProductFamilyId' not null" json:"PLN_CustOrder-ProductFamilyId"`
  23. PartId string `xorm:"nvarchar(40) 'PartId' not null" json:"PLN_CustOrder-PartId"`
  24. OemOrderId string `xorm:"nvarchar(40) 'OemOrderId' not null" json:"PLN_CustOrder-OemOrderId"`
  25. OrderType string `xorm:"nvarchar(20) 'OrderType' not null" json:"PLN_CustOrder-OrderType"`
  26. OrderInfo string `xorm:"nvarchar(100) 'OrderInfo' not null" json:"PLN_CustOrder-OrderInfo"`
  27. OrderTime grmi.DateTime `xorm:"datetime 'OrderTime' not null" json:"PLN_CustOrder-OrderTime"`
  28. DeliveryTime grmi.DateTime `xorm:"datetime 'DeliveryTime' not null" json:"PLN_CustOrder-DeliveryTime"`
  29. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"PLN_CustOrder-ProjectId"`
  30. ConfigValue string `xorm:"nvarchar(40) 'ConfigValue' not null" json:"PLN_CustOrder-ConfigValue"`
  31. ModelValue string `xorm:"nvarchar(40) 'ModelValue' not null" json:"PLN_CustOrder-ModelValue"`
  32. ColorValue string `xorm:"nvarchar(40) 'ColorValue' not null" json:"PLN_CustOrder-ColorValue"`
  33. HandleStatus string `xorm:"nvarchar(2) 'HandleStatus' not null" json:"PLN_CustOrder-HandleStatus"`
  34. VinPrefix string `xorm:"nvarchar(40) 'VinPrefix' not null" json:"PLN_CustOrder-VinPrefix"`
  35. VinNrFrom int `xorm:"int 'VinNrFrom' not null" json:"PLN_CustOrder-VinNrFrom"`
  36. VinNrTo int `xorm:"int 'VinNrTo' not null" json:"PLN_CustOrder-VinNrTo"`
  37. Vin string `xorm:"nvarchar(40) 'Vin' not null" json:"PLN_CustOrder-Vin"`
  38. PlanQty int `xorm:"int 'PlanQty' not null" json:"PLN_CustOrder-PlanQty"`
  39. DeliveryDate grmi.Date `xorm:"date 'DeliveryDate' not null" json:"PLN_CustOrder-DeliveryDate"`
  40. DeliveryDateTime grmi.DateTime `xorm:"datetime 'DeliveryDateTime' not null" json:"PLN_CustOrder-DeliveryDateTime"`
  41. OemSeq int64 `xorm:"bigint 'OemSeq' not null" json:"PLN_CustOrder-OemSeq"`
  42. AssemblyLine string `xorm:"nvarchar(40) 'AssemblyLine' not null" json:"PLN_CustOrder-AssemblyLine"`
  43. UnloadingPoint string `xorm:"nvarchar(40) 'UnloadingPoint' not null" json:"PLN_CustOrder-UnloadingPoint"`
  44. CalloffId string `xorm:"nvarchar(40) 'CalloffId' not null" json:"PLN_CustOrder-CalloffId"`
  45. CalloffDateTime grmi.DateTime `xorm:"datetime 'CalloffDateTime' not null" json:"PLN_CustOrder-CalloffDateTime"`
  46. ConsigneePlant int `xorm:"int 'ConsigneePlant' not null" json:"PLN_CustOrder-ConsigneePlant"`
  47. ConsigneeCompany int `xorm:"int 'ConsigneeCompany' not null" json:"PLN_CustOrder-ConsigneeCompany"`
  48. ConsumeCompany int `xorm:"int 'ConsumeCompany' not null" json:"PLN_CustOrder-ConsumeCompany"`
  49. ConsumePlant int `xorm:"int 'ConsumePlant' not null" json:"PLN_CustOrder-ConsumePlant"`
  50. UnloadingPlace string `xorm:"nvarchar(40) 'UnloadingPlace' not null" json:"PLN_CustOrder-UnloadingPlace"`
  51. VehicleIdSet string `xorm:"nvarchar(40) 'VehicleIdSet' not null" json:"PLN_CustOrder-VehicleIdSet"`
  52. VehicleId string `xorm:"nvarchar(40) 'VehicleId' not null" json:"PLN_CustOrder-VehicleId"`
  53. FixStartTimeToggle bool `xorm:"bit 'FixStartTimeToggle' not null" json:"PLN_CustOrder-FixStartTimeToggle"`
  54. PlanStartDate grmi.Date `xorm:"date 'PlanStartDate' not null" json:"PLN_CustOrder-PlanStartDate"`
  55. PlanEndDate grmi.Date `xorm:"date 'PlanEndDate' not null" json:"PLN_CustOrder-PlanEndDate"`
  56. SetupStartTime grmi.DateTime `xorm:"datetime 'SetupStartTime' not null" json:"PLN_CustOrder-SetupStartTime"`
  57. SetupEndTime grmi.DateTime `xorm:"datetime 'SetupEndTime' not null" json:"PLN_CustOrder-SetupEndTime"`
  58. PlanStartTime grmi.DateTime `xorm:"datetime 'PlanStartTime' not null" json:"PLN_CustOrder-PlanStartTime"`
  59. PlanEndTime grmi.DateTime `xorm:"datetime 'PlanEndTime' not null" json:"PLN_CustOrder-PlanEndTime"`
  60. ActStartTime grmi.DateTime `xorm:"datetime 'ActStartTime' not null" json:"PLN_CustOrder-ActStartTime"`
  61. ActEndTime grmi.DateTime `xorm:"datetime 'ActEndTime' not null" json:"PLN_CustOrder-ActEndTime"`
  62. CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"PLN_CustOrder-CtrlPara1"`
  63. CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"PLN_CustOrder-CtrlPara2"`
  64. CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"PLN_CustOrder-CtrlStr1"`
  65. CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"PLN_CustOrder-CtrlStr2"`
  66. SourceId string `xorm:"nvarchar(40) 'SourceId'" json:"PLN_CustOrder-SourceId"`
  67. QuantityPerHour int `xorm:"int 'QuantityPerHour'" json:"PLN_CustOrder-QuantityPerHour"`
  68. WorkLineId string `xorm:"nvarchar(40) 'WorkLineId' not null" json:"PLN_CustOrder-WorkLineId"`
  69. HasCrossPlantTask bool `xorm:"bit 'HasCrossPlantTask'" json:"PLN_CustOrder-HasCrossPlantTask"`
  70. CrossPlantTaskQty int `xorm:"int 'CrossPlantTaskQty'" json:"PLN_CustOrder-CrossPlantTaskQty"`
  71. CrossPlantTaskStatus int `xorm:"int 'CrossPlantTaskStatus'" json:"PLN_CustOrder-CrossPlantTaskStatus"`
  72. CrossPlantTaskSchedType string `xorm:"nvarchar(100) 'CrossPlantTaskSchedType'" json:"PLN_CustOrder-CrossPlantTaskSchedType"`
  73. CrossTargetPlantNr int `xorm:"int 'CrossTargetPlantNr'" json:"PLN_CustOrder-CrossTargetPlantNr"`
  74. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PLN_CustOrder-LastModify"`
  75. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PLN_CustOrder-LastUser"`
  76. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PLN_CustOrder-CreateTime"`
  77. OrderStatus CustOrderStatus `xorm:"-" json:"PLN_CustOrder-OrderStatus"`
  78. OrderQty CustOrderQty `xorm:"-" json:"PLN_CustOrder-OrderQty"`
  79. }
  80. /******************************************************************************
  81. *
  82. * @Function Name : GetKey
  83. *-----------------------------------------------------------------------------
  84. *
  85. * @Description : 获取实体的主键
  86. *
  87. * @Return Value : 实体的主键
  88. *
  89. * @Author : 代码生成器创建
  90. *
  91. * @Date : 2022-05-27 14:54:54
  92. *
  93. ******************************************************************************/
  94. func (self *CustOrder) GetKey() core.PK {
  95. return core.PK{self.PlantNr, self.CustOrderId}
  96. }