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

57 lines
3.0 KiB

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 : ArticleSecondaryResource
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ArticleSecondaryResource的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-10-08 17:47:11
  17. *
  18. ******************************************************************************/
  19. type ArticleSecondaryResource struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_ArticleSecondaryResource-PlantNr"`
  21. ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"AP_ArticleSecondaryResource-ArtId"`
  22. SecondaryResourceId string `xorm:"pk nvarchar(40) 'SecondaryResourceId'" json:"AP_ArticleSecondaryResource-SecondaryResourceId"`
  23. QuantityPerHour float64 `xorm:"float 'QuantityPerHour' not null" json:"AP_ArticleSecondaryResource-QuantityPerHour"`//每小时产量
  24. //不显示
  25. RatePerHourToggle bool `xorm:"bit 'RatePerHourToggle'" json:"AP_ArticleSecondaryResource-RatePerHourToggle"`// 每小时产量计算开关 暂时无法修改 默认true
  26. TimePerItemToggle bool `xorm:"bit 'TimePerItemToggle'" json:"AP_ArticleSecondaryResource-TimePerItemToggle"`
  27. OpTimePerItem float64 `xorm:"float 'OpTimePerItem'" json:"AP_ArticleSecondaryResource-OpTimePerItem"`
  28. BatchTimeFieldToggle bool `xorm:"bit 'BatchTimeFieldToggle'" json:"AP_ArticleSecondaryResource-BatchTimeFieldToggle"`
  29. BatchTime float64 `xorm:"float 'BatchTime'" json:"AP_ArticleSecondaryResource-BatchTime"`
  30. BatchQuantity int `xorm:"int 'BatchQuantity'" json:"AP_ArticleSecondaryResource-BatchQuantity"`
  31. TimeUom string `xorm:"nvarchar(40) 'TimeUom'" json:"AP_ArticleSecondaryResource-TimeUom"`
  32. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_ArticleSecondaryResource-LastModify"`
  33. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_ArticleSecondaryResource-LastUser"`
  34. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_ArticleSecondaryResource-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 *ArticleSecondaryResource) GetKey() core.PK {
  51. return core.PK{self.PlantNr, self.ArtId, self.SecondaryResourceId}
  52. }