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

50 lines
2.1 KiB

3 years ago
3 years ago
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 : ResourceSpecialDay
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ResourceSpecialDay的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-10-12 09:28:26
  17. *
  18. ******************************************************************************/
  19. type ResourceSpecialDay struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_ResourceSpecialDay-PlantNr"`
  21. ResourceId string `xorm:"pk nvarchar(40) 'ResourceId'" json:"AP_ResourceSpecialDay-ResourceId"`
  22. Pos int `xorm:"pk int 'Pos'" json:"AP_ResourceSpecialDay-Pos"`
  23. SpecialDay grmi.Date `xorm:"date 'SpecialDay' not null" json:"AP_ResourceSpecialDay-SpecialDay"`
  24. DayAvailHours float64 `xorm:"float 'DayAvailHours'" json:"AP_ResourceSpecialDay-DayAvailHours"`
  25. // 不显示
  26. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_ResourceSpecialDay-LastModify"`
  27. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_ResourceSpecialDay-LastUser"`
  28. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_ResourceSpecialDay-CreateTime"`
  29. }
  30. /******************************************************************************
  31. *
  32. * @Function Name : GetKey
  33. *-----------------------------------------------------------------------------
  34. *
  35. * @Description : 获取实体的主键
  36. *
  37. * @Return Value : 实体的主键
  38. *
  39. * @Author : 代码生成器创建
  40. *
  41. * @Date : 2021-10-12 09:28:26
  42. *
  43. ******************************************************************************/
  44. func (self *ResourceSpecialDay) GetKey() core.PK {
  45. return core.PK{self.PlantNr, self.ResourceId, self.Pos}
  46. }