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

87 lines
5.9 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package me
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : Product
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Product的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-10-19 15:22:21
  17. *
  18. ******************************************************************************/
  19. type Product struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"ME_Product-PlantNr"`
  21. ProductId string `xorm:"pk nvarchar(40) 'ProductId'" json:"ME_Product-ProductId"`
  22. Descr string `xorm:"nvarchar(40) 'Descr' not null" json:"ME_Product-Descr"`
  23. SerialOrderSnr string `xorm:"nvarchar(40) 'SerialOrderSnr' not null" json:"ME_Product-SerialOrderSnr"`
  24. ProductFamilyId string `xorm:"-" json:"ME_Product-ProductFamilyId"`
  25. ProjectId string `xorm:"pk nvarchar(40) 'ProjectId'" json:"ME_Product-ProjectId"`
  26. DefaultWorkLineId string `xorm:"nvarchar(40) 'DefaultWorkLineId'" json:"ME_Product-DefaultWorkLineId"`
  27. MultiWorkLineToggle bool `xorm:"bit 'MultiWorkLineToggle' not null" json:"ME_Product-MultiWorkLineToggle"`
  28. Descr1 string `xorm:"nvarchar(40) 'Descr1' not null" json:"ME_Product-Descr1"`
  29. Descr2 string `xorm:"nvarchar(40) 'Descr2' not null" json:"ME_Product-Descr2"`
  30. PartId string `xorm:"nvarchar(40) 'PartId' not null" json:"ME_Product-PartId"`
  31. CustPartId string `xorm:"nvarchar(40) 'CustPartId' not null" json:"ME_Product-CustPartId"`
  32. IntPartId string `xorm:"nvarchar(40) 'IntPartId' not null" json:"ME_Product-IntPartId"`
  33. PlanType string `xorm:"nvarchar(20) 'PlanType' not null" json:"ME_Product-PlanType"`
  34. PlanMode string `xorm:"nvarchar(20) 'PlanMode' not null" json:"ME_Product-PlanMode"`
  35. ProductType string `xorm:"nvarchar(20) 'ProductType' not null" json:"ME_Product-ProductType"`
  36. ProductType1 string `xorm:"nvarchar(20) 'ProductType1' not null" json:"ME_Product-ProductType1"`
  37. ProductType2 string `xorm:"nvarchar(20) 'ProductType2' not null" json:"ME_Product-ProductType2"`
  38. ProductSpec string `xorm:"nvarchar(40) 'ProductSpec' not null" json:"ME_Product-ProductSpec"`
  39. ProductSpec1 string `xorm:"nvarchar(40) 'ProductSpec1' not null" json:"ME_Product-ProductSpec1"`
  40. ProductSpec2 string `xorm:"nvarchar(40) 'ProductSpec2' not null" json:"ME_Product-ProductSpec2"`
  41. AllowPackToggle bool `xorm:"bit 'AllowPackToggle' not null" json:"ME_Product-AllowPackToggle"`
  42. CreateWorkOrderToggle bool `xorm:"bit 'CreateWorkOrderToggle' not null" json:"ME_Product-CreateWorkOrderToggle"`
  43. CreatePackOrderToggle bool `xorm:"bit 'CreatePackOrderToggle' not null" json:"ME_Product-CreatePackOrderToggle"`
  44. PackSize int `xorm:"int 'PackSize' not null" json:"ME_Product-PackSize"`
  45. PackOrderItemSize int `xorm:"int 'PackOrderItemSize' not null" json:"ME_Product-PackOrderItemSize"`
  46. Jph float64 `xorm:"float 'Jph' not null" json:"ME_Product-Jph"`
  47. PlanPriority int `xorm:"int 'PlanPriority' not null" json:"ME_Product-PlanPriority"`
  48. BatchSize int `xorm:"int 'BatchSize' not null" json:"ME_Product-BatchSize"`
  49. LeadTimeInSecond int `xorm:"int 'LeadTimeInSecond' not null" json:"ME_Product-LeadTimeInSecond"`
  50. PickingFlag string `xorm:"nvarchar(40) 'PickingFlag' not null" json:"ME_Product-PickingFlag"`
  51. MachineCode string `xorm:"nvarchar(40) 'MachineCode' not null" json:"ME_Product-MachineCode"`
  52. ColorValue string `xorm:"nvarchar(40) 'ColorValue' not null" json:"ME_Product-ColorValue"`
  53. PrintTemplateId string `xorm:"nvarchar(40) 'PrintTemplateId' not null" json:"ME_Product-PrintTemplateId"`
  54. CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"ME_Product-CtrlPara1"`
  55. CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"ME_Product-CtrlPara2"`
  56. CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"ME_Product-CtrlStr1"`
  57. CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"ME_Product-CtrlStr2"`
  58. CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1' not null" json:"ME_Product-CtrlTime1"`
  59. CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2' not null" json:"ME_Product-CtrlTime2"`
  60. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"ME_Product-LastModify"`
  61. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"ME_Product-LastUser"`
  62. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"ME_Product-CreateTime"`
  63. //Project []Project `xorm:"-" json:"-"`
  64. ProductFamily []ProductFamily `xorm:"-" json:"ME_Product-ProductFamily"`
  65. Count int `xorm:"-" json:"ME_Product-Count"`
  66. }
  67. /******************************************************************************
  68. *
  69. * @Function Name : GetKey
  70. *-----------------------------------------------------------------------------
  71. *
  72. * @Description : 获取实体的主键
  73. *
  74. * @Return Value : 实体的主键
  75. *
  76. * @Author : 代码生成器创建
  77. *
  78. * @Date : 2021-10-19 15:22:21
  79. *
  80. ******************************************************************************/
  81. func (self *Product) GetKey() core.PK {
  82. return core.PK{self.PlantNr, self.ProductId, self.ProjectId}
  83. }