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

55 lines
2.9 KiB

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