广汽安道拓Acura项目MES后台
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.2 KiB

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