苏州瑞玛APS项目web后台
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.

55 lines
2.8 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package ap
  3. import (
  4. "leit.com/LAPP_CHEERSSON_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : ArticleIndependentDemand
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ArticleIndependentDemand的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-12-23 20:21:02
  17. *
  18. ******************************************************************************/
  19. type ArticleIndependentDemand struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_ArticleIndependentDemand-PlantNr"`
  21. ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"AP_ArticleIndependentDemand-ArtId"`
  22. DemandKey string `xorm:"pk nvarchar(40) 'DemandKey'" json:"AP_ArticleIndependentDemand-DemandKey"`
  23. VersionNr string `xorm:"pk nvarchar(40) 'VersionNr'" json:"AP_ArticleIndependentDemand-VersionNr"`
  24. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"AP_ArticleIndependentDemand-ProjectId"`
  25. CustomerId string `xorm:"nvarchar(40) 'CustomerId' not null" json:"AP_ArticleIndependentDemand-CustomerId"`
  26. DemandDate grmi.Date `xorm:"date 'DemandDate' not null" json:"AP_ArticleIndependentDemand-DemandDate"`
  27. DemandYear int `xorm:"int 'DemandYear' not null" json:"AP_ArticleIndependentDemand-DemandYear"`
  28. DemandWeek int `xorm:"int 'DemandWeek' not null" json:"AP_ArticleIndependentDemand-DemandWeek"`
  29. DemandMonth int `xorm:"int 'DemandMonth' not null" json:"AP_ArticleIndependentDemand-DemandMonth"`
  30. DemandQty float64 `xorm:"float 'DemandQty'" json:"AP_ArticleIndependentDemand-DemandQty"`
  31. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_ArticleIndependentDemand-LastModify"`
  32. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_ArticleIndependentDemand-LastUser"`
  33. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_ArticleIndependentDemand-CreateTime"`
  34. }
  35. /******************************************************************************
  36. *
  37. * @Function Name : GetKey
  38. *-----------------------------------------------------------------------------
  39. *
  40. * @Description : 获取实体的主键
  41. *
  42. * @Return Value : 实体的主键
  43. *
  44. * @Author : 代码生成器创建
  45. *
  46. * @Date : 2021-12-23 20:21:02
  47. *
  48. ******************************************************************************/
  49. func (self *ArticleIndependentDemand) GetKey() core.PK {
  50. return core.PK{self.PlantNr, self.ArtId, self.DemandKey, self.VersionNr}
  51. }