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

63 lines
3.5 KiB

3 years ago
3 years ago
  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : Process
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Process的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-11-22 17:33:27
  17. *
  18. ******************************************************************************/
  19. type Process struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"Process-PlantNr"`
  21. PO string `xorm:"pk nvarchar(40) 'PO'" json:"Process-PO"`
  22. Name string `xorm:"nvarchar(40) 'Name' not null" json:"Process-Name"`
  23. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"Process-Descr"`
  24. PrePO string `xorm:"nvarchar(255) 'PrePO' not null" json:"Process-PrePO"`
  25. NextPO string `xorm:"nvarchar(255) 'NextPO' not null" json:"Process-NextPO"`
  26. IsFirstPO bool `xorm:"bit 'IsFirstPO' not null" json:"Process-IsFirstPO"`
  27. IsLastPO bool `xorm:"bit 'IsLastPO' not null" json:"Process-IsLastPO"`
  28. PrePOForBK string `xorm:"nvarchar(255) 'PrePOForBK' not null" json:"Process-PrePOForBK"`
  29. NextPOForBK string `xorm:"nvarchar(255) 'NextPOForBK' not null" json:"Process-NextPOForBK"`
  30. IsFirstPOForBK bool `xorm:"bit 'IsFirstPOForBK' not null" json:"Process-IsFirstPOForBK"`
  31. IsLastPOForBK bool `xorm:"bit 'IsLastPOForBK' not null" json:"Process-IsLastPOForBK"`
  32. HasDependOn bool `xorm:"bit 'HasDependOn' not null" json:"Process-HasDependOn"`
  33. AllowPrePOStatus string `xorm:"nvarchar(50) 'AllowPrePOStatus' not null" json:"Process-AllowPrePOStatus"`
  34. AllowPrePOStatusForBK string `xorm:"nvarchar(50) 'AllowPrePOStatusForBK' not null" json:"Process-AllowPrePOStatusForBK"`
  35. Source string `xorm:"-" json:"Process-Source"`
  36. EnableMonitor bool `xorm:"bit 'EnableMonitor' not null" json:"Process-EnableMonitor"`
  37. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Process-LastModify"`
  38. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Process-LastUser"`
  39. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Process-CreateTime"`
  40. WorkLineProcessLstLi []WorkLineProcessLst `xorm:"-" json:"Process-WorkLineProcessLstLi"`
  41. OriginPO string `xorm:"-" json:"Process-OriginPO"`
  42. }
  43. /******************************************************************************
  44. *
  45. * @Function Name : GetKey
  46. *-----------------------------------------------------------------------------
  47. *
  48. * @Description : 获取实体的主键
  49. *
  50. * @Return Value : 实体的主键
  51. *
  52. * @Author : 代码生成器创建
  53. *
  54. * @Date : 2021-11-22 17:33:27
  55. *
  56. ******************************************************************************/
  57. func (self *Process) GetKey() core.PK {
  58. return core.PK{self.PlantNr, self.PO}
  59. }