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.

52 lines
2.3 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 : StationOrder
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : StationOrder的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-06-18 11:12:43
  17. *
  18. ******************************************************************************/
  19. type StationOrder struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"ODS_StationOrder-PlantNr"`
  21. Station string `xorm:"pk nvarchar(40) 'Station'" json:"ODS_StationOrder-Station"`
  22. ArtId string `xorm:"nvarchar(40) 'ArtId' not null" json:"ODS_StationOrder-ArtId"`
  23. SerialOrderId string `xorm:"nvarchar(100) 'SerialOrderId' not null" json:"ODS_StationOrder-SerialOrderId"`
  24. ODSCtrlPara1 string `xorm:"nvarchar(100) 'ODSCtrlPara1' not null" json:"ODS_StationOrder-ODSCtrlPara1"`
  25. ODSCtrlPara2 string `xorm:"nvarchar(100) 'ODSCtrlPara2' not null" json:"ODS_StationOrder-ODSCtrlPara2"`
  26. ODSCtrlPara3 int `xorm:"int 'ODSCtrlPara3' not null" json:"ODS_StationOrder-ODSCtrlPara3"`
  27. ODSCtrlPara4 int `xorm:"int 'ODSCtrlPara4' not null" json:"ODS_StationOrder-ODSCtrlPara4"`
  28. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"ODS_StationOrder-LastModify"`
  29. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"ODS_StationOrder-LastUser"`
  30. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"ODS_StationOrder-CreateTime"`
  31. }
  32. /******************************************************************************
  33. *
  34. * @Function Name : GetKey
  35. *-----------------------------------------------------------------------------
  36. *
  37. * @Description : 获取实体的主键
  38. *
  39. * @Return Value : 实体的主键
  40. *
  41. * @Author : 代码生成器创建
  42. *
  43. * @Date : 2021-06-18 11:12:43
  44. *
  45. ******************************************************************************/
  46. func (self *StationOrder) GetKey() core.PK {
  47. return core.PK{self.PlantNr, self.Station}
  48. }