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

82 lines
5.6 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package log
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : ArtDemandLst
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ArtDemandLst的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-06-11 16:10:25
  17. *
  18. ******************************************************************************/
  19. type ArtDemandLst struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"LOG_ArtDemandLst-PlantNr"`
  21. DemandId string `xorm:"pk nvarchar(40) 'DemandId'" json:"LOG_ArtDemandLst-DemandId"`
  22. Pos int `xorm:"pk int 'Pos'" json:"LOG_ArtDemandLst-Pos"`
  23. ArtId string `xorm:"nvarchar(40) 'ArtId' not null" json:"LOG_ArtDemandLst-ArtId"`
  24. DemandTime grmi.DateTime `xorm:"datetime2(7) 'DemandTime' not null" json:"LOG_ArtDemandLst-DemandTime"`
  25. DemandYear int `xorm:"int 'DemandYear' not null" json:"LOG_ArtDemandLst-DemandYear"`
  26. DemandMonth int `xorm:"int 'DemandMonth' not null" json:"LOG_ArtDemandLst-DemandMonth"`
  27. DemandWeek int `xorm:"int 'DemandWeek' not null" json:"LOG_ArtDemandLst-DemandWeek"`
  28. DemandDate grmi.Date `xorm:"date 'DemandDate' not null" json:"LOG_ArtDemandLst-DemandDate"`
  29. DemandHour int `xorm:"int 'DemandHour' not null" json:"LOG_ArtDemandLst-DemandHour"`
  30. DemandQty float64 `xorm:"float 'DemandQty' not null" json:"LOG_ArtDemandLst-DemandQty"`
  31. QtyUomId string `xorm:"nvarchar(40) 'QtyUomId' not null" json:"LOG_ArtDemandLst-QtyUomId"`
  32. DemandObjId string `xorm:"nvarchar(40) 'DemandObjId' not null" json:"LOG_ArtDemandLst-DemandObjId"`
  33. DemandType string `xorm:"nvarchar(40) 'DemandType' not null" json:"LOG_ArtDemandLst-DemandType"`
  34. Status int `xorm:"int 'Status' not null" json:"LOG_ArtDemandLst-Status"`
  35. DemandSendTime grmi.DateTime `xorm:"datetime 'DemandSendTime'" json:"LOG_ArtDemandLst-DemandSendTime"`
  36. DemandRecieveTime grmi.DateTime `xorm:"datetime 'DemandRecieveTime'" json:"LOG_ArtDemandLst-DemandRecieveTime"`
  37. DemandConfirmTime grmi.DateTime `xorm:"datetime 'DemandConfirmTime'" json:"LOG_ArtDemandLst-DemandConfirmTime"`
  38. DemandCloseTime grmi.DateTime `xorm:"datetime 'DemandCloseTime'" json:"LOG_ArtDemandLst-DemandCloseTime"`
  39. DemandDeliveredQty float64 `xorm:"float 'DemandDeliveredQty' not null" json:"LOG_ArtDemandLst-DemandDeliveredQty"`
  40. DemandCtrlPara1 int `xorm:"int 'DemandCtrlPara1' not null" json:"LOG_ArtDemandLst-DemandCtrlPara1"`
  41. DemandCtrlPara2 int `xorm:"int 'DemandCtrlPara2' not null" json:"LOG_ArtDemandLst-DemandCtrlPara2"`
  42. DemandCtrlPara3 string `xorm:"nvarchar(100) 'DemandCtrlPara3' not null" json:"LOG_ArtDemandLst-DemandCtrlPara3"`
  43. DemandCtrlPara4 string `xorm:"nvarchar(100) 'DemandCtrlPara4' not null" json:"LOG_ArtDemandLst-DemandCtrlPara4"`
  44. DemandCtrlTime1 grmi.DateTime `xorm:"datetime 'DemandCtrlTime1'" json:"LOG_ArtDemandLst-DemandCtrlTime1"`
  45. DemandCtrlTime2 grmi.DateTime `xorm:"datetime 'DemandCtrlTime2'" json:"LOG_ArtDemandLst-DemandCtrlTime2"`
  46. OrderStatus int `xorm:"int 'OrderStatus' not null" json:"LOG_ArtDemandLst-OrderStatus"`
  47. UnproducedQty float64 `xorm:"float 'UnproducedQty' not null" json:"LOG_ArtDemandLst-UnproducedQty"`
  48. OrderType string `xorm:"nvarchar(20) 'OrderType' not null" json:"LOG_ArtDemandLst-OrderType"`
  49. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"LOG_ArtDemandLst-ProjectId"`
  50. DemandStatus int `xorm:"int 'DemandStatus' not null" json:"LOG_ArtDemandLst-DemandStatus"`
  51. PlanResourceId string `xorm:"nvarchar(40) 'PlanResourceId'" json:"LOG_ArtDemandLst-PlanResourceId"`
  52. PlanStartDate grmi.Date `xorm:"date 'PlanStartDate'" json:"LOG_ArtDemandLst-PlanStartDate"`
  53. PlanEndDate grmi.Date `xorm:"date 'PlanEndDate'" json:"LOG_ArtDemandLst-PlanEndDate"`
  54. PlanStartTime grmi.DateTime `xorm:"datetime 'PlanStartTime'" json:"LOG_ArtDemandLst-PlanStartTime"`
  55. PlanEndTime grmi.DateTime `xorm:"datetime 'PlanEndTime'" json:"LOG_ArtDemandLst-PlanEndTime"`
  56. ActStartTime grmi.DateTime `xorm:"datetime 'ActStartTime'" json:"LOG_ArtDemandLst-ActStartTime"`
  57. ActEndTime grmi.DateTime `xorm:"datetime 'ActEndTime'" json:"LOG_ArtDemandLst-ActEndTime"`
  58. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"LOG_ArtDemandLst-LastModify"`
  59. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"LOG_ArtDemandLst-LastUser"`
  60. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"LOG_ArtDemandLst-CreateTime"`
  61. }
  62. /******************************************************************************
  63. *
  64. * @Function Name : GetKey
  65. *-----------------------------------------------------------------------------
  66. *
  67. * @Description : 获取实体的主键
  68. *
  69. * @Return Value : 实体的主键
  70. *
  71. * @Author : 代码生成器创建
  72. *
  73. * @Date : 2021-06-11 16:10:25
  74. *
  75. ******************************************************************************/
  76. func (self *ArtDemandLst) GetKey() core.PK {
  77. return core.PK{self.PlantNr, self.DemandId, self.Pos}
  78. }