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

58 lines
3.0 KiB

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