高级排程
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.

46 lines
1.7 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package as
  3. import (
  4. "LAPP_AS/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : Scheduler
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Scheduler的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-09-06 15:51:34
  17. *
  18. ******************************************************************************/
  19. type Scheduler struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"AS_Scheduler-PlantNr"`
  21. SchedulerId int `xorm:"pk int 'SchedulerId'" json:"AS_Scheduler-SchedulerId"`
  22. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AS_Scheduler-LastModify"`
  23. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AS_Scheduler-LastUser"`
  24. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AS_Scheduler-CreateTime"`
  25. }
  26. /******************************************************************************
  27. *
  28. * @Function Name : GetKey
  29. *-----------------------------------------------------------------------------
  30. *
  31. * @Description : 获取实体的主键
  32. *
  33. * @Return Value : 实体的主键
  34. *
  35. * @Author : 代码生成器创建
  36. *
  37. * @Date : 2021-09-06 15:51:34
  38. *
  39. ******************************************************************************/
  40. func (self *Scheduler) GetKey() core.PK {
  41. return core.PK{self.PlantNr, self.SchedulerId}
  42. }