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

62 lines
3.1 KiB

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 : PLCErrorInfo
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : PLCErrorInfo的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2022-02-14 17:25:00
  17. *
  18. ******************************************************************************/
  19. type PLCErrorInfo struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PLCErrorInfo-PlantNr"`
  21. ErrorId string `xorm:"pk nvarchar(40) 'ErrorId'" json:"PLCErrorInfo-ErrorId"`
  22. Source string `xorm:"pk nvarchar(40) 'Source'" json:"PLCErrorInfo-Source"`
  23. Status int `xorm:"int 'Status' not null" json:"PLCErrorInfo-Status"`
  24. Step int `xorm:"int 'Step' not null" json:"PLCErrorInfo-Step"`
  25. ErrorInfo string `xorm:"nvarchar(500) 'ErrorInfo' not null" json:"PLCErrorInfo-ErrorInfo"`
  26. SeatData string `xorm:"nvarchar(100) 'SeatData' not null" json:"PLCErrorInfo-SeatData"`
  27. Location string `xorm:"nvarchar(40) 'Location' not null" json:"PLCErrorInfo-Location"`
  28. ErrorType string `xorm:"nvarchar(20) 'ErrorType' not null" json:"PLCErrorInfo-ErrorType"`
  29. SaveStr1 string `xorm:"nvarchar(100) 'SaveStr1'" json:"PLCErrorInfo-SaveStr1"`
  30. SaveStr2 string `xorm:"nvarchar(100) 'SaveStr2'" json:"PLCErrorInfo-SaveStr2"`
  31. SaveStr3 string `xorm:"nvarchar(100) 'SaveStr3'" json:"PLCErrorInfo-SaveStr3"`
  32. SaveInt1 int `xorm:"int 'SaveInt1'" json:"PLCErrorInfo-SaveInt1"`
  33. SaveInt2 int `xorm:"int 'SaveInt2'" json:"PLCErrorInfo-SaveInt2"`
  34. SaveInt3 int `xorm:"int 'SaveInt3'" json:"PLCErrorInfo-SaveInt3"`
  35. SaveFloat1 float64 `xorm:"float 'SaveFloat1'" json:"PLCErrorInfo-SaveFloat1"`
  36. SaveFloat2 float64 `xorm:"float 'SaveFloat2'" json:"PLCErrorInfo-SaveFloat2"`
  37. SaveFloat3 float64 `xorm:"float 'SaveFloat3'" json:"PLCErrorInfo-SaveFloat3"`
  38. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PLCErrorInfo-LastModify"`
  39. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PLCErrorInfo-LastUser"`
  40. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PLCErrorInfo-CreateTime"`
  41. }
  42. /******************************************************************************
  43. *
  44. * @Function Name : GetKey
  45. *-----------------------------------------------------------------------------
  46. *
  47. * @Description : 获取实体的主键
  48. *
  49. * @Return Value : 实体的主键
  50. *
  51. * @Author : 代码生成器创建
  52. *
  53. * @Date : 2022-02-14 17:25:00
  54. *
  55. ******************************************************************************/
  56. func (self *PLCErrorInfo) GetKey() core.PK {
  57. return core.PK{self.PlantNr, self.ErrorId, self.Source}
  58. }