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

70 lines
4.0 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 : ProductFamily
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ProductFamily的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-10-19 14:04:53
  17. *
  18. ******************************************************************************/
  19. type ProductFamily struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"ME_ProductFamily-PlantNr"`
  21. ProductFamilyId string `xorm:"pk nvarchar(40) 'ProductFamilyId'" json:"ME_ProductFamily-ProductFamilyId"`
  22. Descr string `xorm:"nvarchar(40) 'Descr' not null" json:"ME_ProductFamily-Descr"`
  23. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"ME_ProductFamily-ProjectId"`
  24. ConfigValue string `xorm:"nvarchar(40) 'ConfigValue' not null" json:"ME_ProductFamily-ConfigValue"`
  25. ModelValue string `xorm:"nvarchar(40) 'ModelValue' not null" json:"ME_ProductFamily-ModelValue"`
  26. ColorValue string `xorm:"nvarchar(40) 'ColorValue' not null" json:"ME_ProductFamily-ColorValue"`
  27. BroadcastPoint string `xorm:"nvarchar(40) 'BroadcastPoint' not null" json:"ME_ProductFamily-BroadcastPoint"`
  28. AutoGenPackToggle bool `xorm:"bit 'AutoGenPackToggle' not null" json:"ME_ProductFamily-AutoGenPackToggle"`
  29. MultiWorkLineToggle bool `xorm:"bit 'MultiWorkLineToggle' not null" json:"ME_ProductFamily-MultiWorkLineToggle"`
  30. Jph float64 `xorm:"float 'Jph' not null" json:"ME_ProductFamily-Jph"`
  31. WorkLineId string `xorm:"nvarchar(40) 'WorkLineId' not null" json:"ME_ProductFamily-WorkLineId"`
  32. PackTypeId string `xorm:"nvarchar(40) 'PackTypeId' not null" json:"ME_ProductFamily-PackTypeId"`
  33. CheckSyncKey bool `xorm:"bit 'CheckSyncKey' not null" json:"ME_ProductFamily-CheckSyncKey"`
  34. Enable bool `xorm:"bit 'Enable' not null" json:"ME_ProductFamily-Enable"`
  35. // 代表派生是樱泰的还是安道拓的
  36. CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"ME_ProductFamily-CtrlPara1"`
  37. CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"ME_ProductFamily-CtrlPara2"`
  38. CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"ME_ProductFamily-CtrlStr1"`
  39. CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"ME_ProductFamily-CtrlStr2"`
  40. CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1' not null" json:"ME_ProductFamily-CtrlTime1"`
  41. CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2' not null" json:"ME_ProductFamily-CtrlTime2"`
  42. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"ME_ProductFamily-LastModify"`
  43. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"ME_ProductFamily-LastUser"`
  44. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"ME_ProductFamily-CreateTime"`
  45. Product []Product `xorm:"-" json:"ME_ProductFamily-Product"`
  46. Relate []ProductFamilyRelate `xorm:"-" json:"-"`
  47. Project Project `xorm:"-" json:"-"`
  48. Count int `xorm:"-" json:"ME_ProductFamily-Count"`
  49. }
  50. /******************************************************************************
  51. *
  52. * @Function Name : GetKey
  53. *-----------------------------------------------------------------------------
  54. *
  55. * @Description : 获取实体的主键
  56. *
  57. * @Return Value : 实体的主键
  58. *
  59. * @Author : 代码生成器创建
  60. *
  61. * @Date : 2021-10-19 14:04:53
  62. *
  63. ******************************************************************************/
  64. func (self *ProductFamily) GetKey() core.PK {
  65. return core.PK{self.PlantNr, self.ProductFamilyId}
  66. }