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.1 KiB

  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 : DemandLst
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : DemandLst的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-07-27 17:06:45
  17. *
  18. ******************************************************************************/
  19. type DemandLst struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"OM_DemandGaasGFrame-PlantNr"`
  21. FileNr int `xorm:"pk int 'FileNr'" json:"OM_DemandGaasGFrame-FileNr"`
  22. Pos int `xorm:"pk int 'Pos'" json:"OM_DemandGaasGFrame-Pos"`
  23. TaskNr int `xorm:"pk int 'TaskNr'" json:"OM_DemandGaasGFrame-TaskNr"`
  24. DemandNr int `xorm:"int 'DemandNr' not null" json:"OM_DemandGaasGFrame-DemandNr"`
  25. BarCode string `xorm:"nvarchar(40) 'BarCode' not null" json:"OM_DemandGaasGFrame-BarCode"`
  26. BarCodeDesc string `xorm:"nvarchar(40) 'BarCodeDesc' not null" json:"OM_DemandGaasGFrame-BarCodeDesc"`
  27. PartCode string `xorm:"nvarchar(40) 'PartCode' not null" json:"OM_DemandGaasGFrame-PartCode"`
  28. PlanDttm grmi.DateTime `xorm:"datetime 'PlanDttm' not null" json:"OM_DemandGaasGFrame-PlanDttm"`
  29. Class1 int `xorm:"int 'Class1' not null" json:"OM_DemandGaasGFrame-Class1"`
  30. ConfigDesc string `xorm:"nvarchar(40) 'ConfigDesc' not null" json:"OM_DemandGaasGFrame-ConfigDesc"`
  31. ConfigKey string `xorm:"nvarchar(40) 'ConfigKey' not null" json:"OM_DemandGaasGFrame-ConfigKey"`
  32. Seq int `xorm:"int 'Seq' not null" json:"OM_DemandGaasGFrame-Seq"`
  33. State int `xorm:"int 'State' not null" json:"OM_DemandGaasGFrame-State"`
  34. StateName string `xorm:"nvarchar(40) 'StateName' not null" json:"OM_DemandGaasGFrame-StateName"`
  35. Station int `xorm:"int 'Station' not null" json:"OM_DemandGaasGFrame-Station"`
  36. StationCode string `xorm:"nvarchar(40) 'StationCode' not null" json:"OM_DemandGaasGFrame-StationCode"`
  37. StationDesc string `xorm:"nvarchar(40) 'StationDesc' not null" json:"OM_DemandGaasGFrame-StationDesc"`
  38. DemandCreateTime grmi.DateTime `xorm:"datetime 'DemandCreateTime'" json:"OM_DemandGaasGFrame-DemandCreateTime"`
  39. IsRefreshToggle bool `xorm:"bit 'IsRefreshToggle'" json:"OM_DemandGaasGFrame-IsRefreshToggle"`
  40. Serial string `xorm:"nvarchar(50) 'Serial' not null" json:"OM_DemandGaasGFrame-Serial"`
  41. CustomId string `xorm:"nvarchar(40) 'CustomId' not null" json:"OM_DemandGaasGFrame-CustomId"`
  42. LogTime grmi.DateTime `xorm:"datetime 'LogTime'" json:"OM_DemandGaasGFrame-LogTime"`
  43. CodeBar string `xorm:"nvarchar(40) 'CodeBar'" json:"OM_DemandGaasGFrame-CodeBar"`
  44. Memo string `xorm:"nvarchar(40) 'Memo'" json:"OM_DemandGaasGFrame-Memo"`
  45. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OM_DemandGaasGFrame-LastModify"`
  46. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OM_DemandGaasGFrame-LastUser"`
  47. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OM_DemandGaasGFrame-CreateTime"`
  48. }
  49. /******************************************************************************
  50. *
  51. * @Function Name : GetKey
  52. *-----------------------------------------------------------------------------
  53. *
  54. * @Description : 获取实体的主键
  55. *
  56. * @Return Value : 实体的主键
  57. *
  58. * @Author : 代码生成器创建
  59. *
  60. * @Date : 2021-07-27 17:06:45
  61. *
  62. ******************************************************************************/
  63. func (self *DemandLst) GetKey() core.PK {
  64. return core.PK{self.PlantNr, self.FileNr, self.Pos, self.TaskNr}
  65. }