苏州瑞玛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.

56 lines
2.9 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  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 : ArticleResource
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ArticleResource的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-10-08 17:47:11
  17. *
  18. ******************************************************************************/
  19. type ArticleResource struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_ArticleResource-PlantNr"`
  21. ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"AP_ArticleResource-ArtId"`
  22. ResourceId string `xorm:"nvarchar(40) 'ResourceId' not null" json:"AP_ArticleResource-ResourceId"`
  23. QuantityPerHour float64 `xorm:"float 'QuantityPerHour' not null" json:"AP_ArticleResource-QuantityPerHour"`//每小时产量
  24. //不显示
  25. RatePerHourToggle bool `xorm:"bit 'RatePerHourToggle'" json:"AP_ArticleResource-RatePerHourToggle"`// 暂时无法修改 默认true
  26. TimePerItemToggle bool `xorm:"bit 'TimePerItemToggle'" json:"AP_ArticleResource-TimePerItemToggle"`// 暂时不显示
  27. OpTimePerItem float64 `xorm:"float 'OpTimePerItem'" json:"AP_ArticleResource-OpTimePerItem"`// 暂时不显示
  28. BatchTimeFieldToggle bool `xorm:"bit 'BatchTimeFieldToggle'" json:"AP_ArticleResource-BatchTimeFieldToggle"`// 暂时不显示
  29. BatchTime float64 `xorm:"float 'BatchTime'" json:"AP_ArticleResource-BatchTime"`// 暂时不显示
  30. BatchQuantity int `xorm:"int 'BatchQuantity'" json:"AP_ArticleResource-BatchQuantity"`// 暂时不显示
  31. TimeUom string `xorm:"nvarchar(40) 'TimeUom'" json:"AP_ArticleResource-TimeUom"`// 暂时不显示
  32. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_ArticleResource-LastModify"`
  33. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_ArticleResource-LastUser"`
  34. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_ArticleResource-CreateTime"`
  35. }
  36. /******************************************************************************
  37. *
  38. * @Function Name : GetKey
  39. *-----------------------------------------------------------------------------
  40. *
  41. * @Description : 获取实体的主键
  42. *
  43. * @Return Value : 实体的主键
  44. *
  45. * @Author : 代码生成器创建
  46. *
  47. * @Date : 2021-10-08 17:47:11
  48. *
  49. ******************************************************************************/
  50. func (self *ArticleResource) GetKey() core.PK {
  51. return core.PK{self.PlantNr, self.ArtId}
  52. }