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

56 lines
3.0 KiB

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 base
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : OPCMonitorBasicComInfo
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : OPCMonitorBasicComInfo的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-11-25 09:48:01
  17. *
  18. ******************************************************************************/
  19. type OPCMonitorBasicComInfo struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"OPCMonitorBasicComInfo-PlantNr"`
  21. OperationId int `xorm:"pk int 'OperationId'" json:"OPCMonitorBasicComInfo-OperationId"`
  22. WorkPlaceNr int `xorm:"pk int 'WorkPlaceNr'" json:"OPCMonitorBasicComInfo-WorkPlaceNr"`
  23. PO string `xorm:"nvarchar(40) 'PO' not null" json:"OPCMonitorBasicComInfo-PO"`
  24. StepNo int `xorm:"int 'StepNo' not null" json:"OPCMonitorBasicComInfo-StepNo"`
  25. StepDesc string `xorm:"nvarchar(100) 'StepDesc' not null" json:"OPCMonitorBasicComInfo-StepDesc"`
  26. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OPCMonitorBasicComInfo-ProjectId"`
  27. BrandName string `xorm:"nvarchar(40) 'BrandName' not null" json:"OPCMonitorBasicComInfo-BrandName"`
  28. MachineType string `xorm:"nvarchar(40) 'MachineType' not null" json:"OPCMonitorBasicComInfo-MachineType"`
  29. IpAddress string `xorm:"nvarchar(40) 'IpAddress' not null" json:"OPCMonitorBasicComInfo-IpAddress"`
  30. CheckWriteBack bool `xorm:"bit 'CheckWriteBack' not null" json:"OPCMonitorBasicComInfo-CheckWriteBack"`
  31. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OPCMonitorBasicComInfo-LastModify"`
  32. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OPCMonitorBasicComInfo-LastUser"`
  33. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OPCMonitorBasicComInfo-CreateTime"`
  34. OPCMonitorComRuleLi []OPCMonitorComRule `xorm:"-" json:"OPCMonitorBasicComInfo-OPCMonitorComRuleLi"`
  35. }
  36. /******************************************************************************
  37. *
  38. * @Function Name : GetKey
  39. *-----------------------------------------------------------------------------
  40. *
  41. * @Description : 获取实体的主键
  42. *
  43. * @Return Value : 实体的主键
  44. *
  45. * @Author : 代码生成器创建
  46. *
  47. * @Date : 2021-11-25 09:48:01
  48. *
  49. ******************************************************************************/
  50. func (self *OPCMonitorBasicComInfo) GetKey() core.PK {
  51. return core.PK{self.PlantNr, self.OperationId, self.WorkPlaceNr}
  52. }