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.

63 lines
4.0 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package om
  3. import (
  4. "LAPP_LF_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : SerialOrderStepStatusRecLst
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : SerialOrderStepStatusRecLst的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-11 10:00:53
  17. *
  18. ******************************************************************************/
  19. type SerialOrderStepStatusRecLst struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"OM_SerialOrderStepStatusRecLst-PlantNr"`
  21. SerialOrderId string `xorm:"pk nvarchar(100) 'SerialOrderId'" json:"OM_SerialOrderStepStatusRecLst-SerialOrderId"`
  22. OperationId int `xorm:"pk int 'OperationId'" json:"OM_SerialOrderStepStatusRecLst-OperationId"`
  23. Pos int `xorm:"pk int 'Pos'" json:"OM_SerialOrderStepStatusRecLst-Pos"`
  24. PO int `xorm:"int 'PO' not null" json:"OM_SerialOrderStepStatusRecLst-PO"`
  25. StepNo int `xorm:"int 'StepNo' not null" json:"OM_SerialOrderStepStatusRecLst-StepNo"`
  26. PrevStatus int `xorm:"int 'PrevStatus' not null" json:"OM_SerialOrderStepStatusRecLst-PrevStatus"`
  27. Status int `xorm:"int 'Status' not null" json:"OM_SerialOrderStepStatusRecLst-Status"`
  28. TriggerEvent string `xorm:"nvarchar(40) 'TriggerEvent' not null" json:"OM_SerialOrderStepStatusRecLst-TriggerEvent"`
  29. TriggerObjectId string `xorm:"nvarchar(40) 'TriggerObjectId' not null" json:"OM_SerialOrderStepStatusRecLst-TriggerObjectId"`
  30. TriggerSubObjectId string `xorm:"nvarchar(40) 'TriggerSubObjectId' not null" json:"OM_SerialOrderStepStatusRecLst-TriggerSubObjectId"`
  31. OutputStatus int `xorm:"int 'OutputStatus' not null" json:"OM_SerialOrderStepStatusRecLst-OutputStatus"`
  32. OutputEvent string `xorm:"nvarchar(40) 'OutputEvent' not null" json:"OM_SerialOrderStepStatusRecLst-OutputEvent"`
  33. OutputEventMessageId string `xorm:"nvarchar(40) 'OutputEventMessageId' not null" json:"OM_SerialOrderStepStatusRecLst-OutputEventMessageId"`
  34. OutputObjectId string `xorm:"nvarchar(40) 'OutputObjectId' not null" json:"OM_SerialOrderStepStatusRecLst-OutputObjectId"`
  35. OutputSubObjectId string `xorm:"nvarchar(40) 'OutputSubObjectId' not null" json:"OM_SerialOrderStepStatusRecLst-OutputSubObjectId"`
  36. OutputErrNum int `xorm:"int 'OutputErrNum' not null" json:"OM_SerialOrderStepStatusRecLst-OutputErrNum"`
  37. Remark1 string `xorm:"nvarchar(100) 'Remark1' not null" json:"OM_SerialOrderStepStatusRecLst-Remark1"`
  38. Remark2 string `xorm:"nvarchar(100) 'Remark2' not null" json:"OM_SerialOrderStepStatusRecLst-Remark2"`
  39. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OM_SerialOrderStepStatusRecLst-LastModify"`
  40. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OM_SerialOrderStepStatusRecLst-LastUser"`
  41. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OM_SerialOrderStepStatusRecLst-CreateTime"`
  42. }
  43. /******************************************************************************
  44. *
  45. * @Function Name : GetKey
  46. *-----------------------------------------------------------------------------
  47. *
  48. * @Description : 获取实体的主键
  49. *
  50. * @Return Value : 实体的主键
  51. *
  52. * @Author : 代码生成器创建
  53. *
  54. * @Date : 2021-08-11 10:00:53
  55. *
  56. ******************************************************************************/
  57. func (self *SerialOrderStepStatusRecLst) GetKey() core.PK {
  58. return core.PK{self.PlantNr, self.SerialOrderId, self.OperationId, self.Pos}
  59. }