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.

54 lines
2.5 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package ods
  3. import (
  4. "LAPP_LF_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : OdsStepLst
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : OdsStepLst的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-03-23 17:06:57
  17. *
  18. ******************************************************************************/
  19. type OdsStepLst struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"ODS_OdsStepLst-PlantNr"`
  21. OdsId string `xorm:"pk nvarchar(40) 'OdsId'" json:"ODS_OdsStepLst-OdsId"`
  22. Pos int `xorm:"pk int 'Pos'" json:"ODS_OdsStepLst-Pos"`
  23. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"ODS_OdsStepLst-Descr"`
  24. OdsTypeId string `xorm:"nvarchar(40) 'OdsTypeId' not null" json:"ODS_OdsStepLst-OdsTypeId"`
  25. OdsContentIdx string `xorm:"nvarchar(255) 'OdsContentIdx' not null" json:"ODS_OdsStepLst-OdsContentIdx"`
  26. CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"ODS_OdsStepLst-CtrlPara1"`
  27. CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"ODS_OdsStepLst-CtrlPara2"`
  28. CtrlPara3 string `xorm:"nvarchar(100) 'CtrlPara3' not null" json:"ODS_OdsStepLst-CtrlPara3"`
  29. CtrlPara4 string `xorm:"nvarchar(100) 'CtrlPara4' not null" json:"ODS_OdsStepLst-CtrlPara4"`
  30. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"ODS_OdsStepLst-LastModify"`
  31. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"ODS_OdsStepLst-LastUser"`
  32. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"ODS_OdsStepLst-CreateTime"`
  33. }
  34. /******************************************************************************
  35. *
  36. * @Function Name : GetKey
  37. *-----------------------------------------------------------------------------
  38. *
  39. * @Description : 获取实体的主键
  40. *
  41. * @Return Value : 实体的主键
  42. *
  43. * @Author : 代码生成器创建
  44. *
  45. * @Date : 2021-03-23 17:06:57
  46. *
  47. ******************************************************************************/
  48. func (self *OdsStepLst) GetKey() core.PK {
  49. return core.PK{self.PlantNr, self.OdsId, self.Pos}
  50. }