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

47 lines
1.8 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 : WorkPlace
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : WorkPlace的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-09-06 15:51:34
  17. *
  18. ******************************************************************************/
  19. type WorkPlace struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"AS_WorkPlace-PlantNr"`
  21. SchedulerId int `xorm:"pk int 'SchedulerId'" json:"AS_WorkPlace-SchedulerId"`
  22. WorkPlaceId string `xorm:"pk nvarchar(40) 'WorkPlaceId'" json:"AS_WorkPlace-WorkPlaceId"`
  23. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AS_WorkPlace-LastModify"`
  24. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AS_WorkPlace-LastUser"`
  25. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AS_WorkPlace-CreateTime"`
  26. }
  27. /******************************************************************************
  28. *
  29. * @Function Name : GetKey
  30. *-----------------------------------------------------------------------------
  31. *
  32. * @Description : 获取实体的主键
  33. *
  34. * @Return Value : 实体的主键
  35. *
  36. * @Author : 代码生成器创建
  37. *
  38. * @Date : 2021-09-06 15:51:34
  39. *
  40. ******************************************************************************/
  41. func (self *WorkPlace) GetKey() core.PK {
  42. return core.PK{self.PlantNr, self.SchedulerId, self.WorkPlaceId}
  43. }