GAAS 广汽安道拓GFrame金属件MOM项目
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.

42 lines
3.2 KiB

  1. package log
  2. import (
  3. "leit.com/LAPP_GAAS_GFrame/grmi"
  4. "xorm.io/core"
  5. )
  6. //ArtDemandHead的实体映射
  7. type ArtDemandHead struct {
  8. PlantNr int `xorm:"pk int 'PlantNr'" json:"LOG_ArtDemandHead-PlantNr"`
  9. ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"LOG_ArtDemandHead-ArtId"`
  10. DemandId string `xorm:"pk nvarchar(40) 'DemandId'" json:"LOG_ArtDemandHead-DemandId"`
  11. DemandType string `xorm:"nvarchar(40) 'DemandType' not null" json:"LOG_ArtDemandHead-DemandType"`
  12. DemandYear int `xorm:"int 'DemandYear' not null" json:"LOG_ArtDemandHead-DemandYear"`
  13. DemandMonth int `xorm:"int 'DemandMonth' not null" json:"LOG_ArtDemandHead-DemandMonth"`
  14. DemandWeek int `xorm:"int 'DemandWeek' not null" json:"LOG_ArtDemandHead-DemandWeek"`
  15. DemandDate grmi.DateTime `xorm:"datetime 'DemandDate' not null" json:"LOG_ArtDemandHead-DemandDate"`
  16. DemandHour int `xorm:"int 'DemandHour' not null" json:"LOG_ArtDemandHead-DemandHour"`
  17. DemandTime grmi.DateTime `xorm:"datetime 'DemandTime'" json:"LOG_ArtDemandHead-DemandTime"`
  18. DemandQty float64 `xorm:"float 'DemandQty' not null" json:"LOG_ArtDemandHead-DemandQty"`
  19. QtyUomId string `xorm:"nvarchar(40) 'QtyUomId' not null" json:"LOG_ArtDemandHead-QtyUomId"`
  20. Status int `xorm:"int 'Status' not null" json:"LOG_ArtDemandHead-Status"`
  21. DemandSendTime grmi.DateTime `xorm:"datetime 'DemandSendTime'" json:"LOG_ArtDemandHead-DemandSendTime"`
  22. DemandRecieveTime grmi.DateTime `xorm:"datetime 'DemandRecieveTime'" json:"LOG_ArtDemandHead-DemandRecieveTime"`
  23. DemandConfirmTime grmi.DateTime `xorm:"datetime 'DemandConfirmTime'" json:"LOG_ArtDemandHead-DemandConfirmTime"`
  24. DemandCloseTime grmi.DateTime `xorm:"datetime 'DemandCloseTime'" json:"LOG_ArtDemandHead-DemandCloseTime"`
  25. DemandDeliveredQty float64 `xorm:"float 'DemandDeliveredQty' not null" json:"LOG_ArtDemandHead-DemandDeliveredQty"`
  26. DemandCtrlPara1 int `xorm:"int 'DemandCtrlPara1' not null" json:"LOG_ArtDemandHead-DemandCtrlPara1"`
  27. DemandCtrlPara2 int `xorm:"int 'DemandCtrlPara2' not null" json:"LOG_ArtDemandHead-DemandCtrlPara2"`
  28. DemandCtrlPara3 string `xorm:"nvarchar(100) 'DemandCtrlPara3' not null" json:"LOG_ArtDemandHead-DemandCtrlPara3"`
  29. DemandCtrlPara4 string `xorm:"nvarchar(100) 'DemandCtrlPara4' not null" json:"LOG_ArtDemandHead-DemandCtrlPara4"`
  30. DemandCtrlTime1 grmi.DateTime `xorm:"datetime 'DemandCtrlTime1'" json:"LOG_ArtDemandHead-DemandCtrlTime1"`
  31. DemandCtrlTime2 grmi.DateTime `xorm:"datetime 'DemandCtrlTime2'" json:"LOG_ArtDemandHead-DemandCtrlTime2"`
  32. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"LOG_ArtDemandHead-LastModify"`
  33. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"LOG_ArtDemandHead-LastUser"`
  34. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"LOG_ArtDemandHead-CreateTime"`
  35. }
  36. //获取ArtDemandHead的主键
  37. func (self *ArtDemandHead) GetKey() core.PK {
  38. return core.PK{self.PlantNr, self.ArtId, self.DemandId}
  39. }