广汽安道拓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.

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