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.

51 lines
2.1 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 : DemandHead
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : DemandHead的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-05-20 14:31:33
  17. *
  18. ******************************************************************************/
  19. type DemandHead struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"OM_DemandHead-PlantNr"`
  21. FileNr int `xorm:"pk int 'FileNr' autoincr" json:"OM_DemandHead-FileNr"`
  22. FileName string `xorm:"nvarchar(40) 'FileName'" json:"OM_DemandHead-FileName"`
  23. Status int `xorm:"int 'Status'" json:"OM_DemandHead-Status"`
  24. ErrorInfo string `xorm:"nvarchar(255) 'ErrorInfo'" json:"OM_DemandHead-ErrorInfo"`
  25. ErrNum int `xorm:"int 'ErrNum'" json:"OM_DemandHead-ErrNum"`
  26. Source string `xorm:"nvarchar(40) 'Source' not null" json:"OM_DemandHead-Source"`
  27. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OM_DemandHead-LastModify"`
  28. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OM_DemandHead-LastUser"`
  29. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OM_DemandHead-CreateTime"`
  30. }
  31. /******************************************************************************
  32. *
  33. * @Function Name : GetKey
  34. *-----------------------------------------------------------------------------
  35. *
  36. * @Description : 获取实体的主键
  37. *
  38. * @Return Value : 实体的主键
  39. *
  40. * @Author : 代码生成器创建
  41. *
  42. * @Date : 2021-04-21 16:22:25
  43. *
  44. ******************************************************************************/
  45. func (self *DemandHead) GetKey() core.PK {
  46. return core.PK{self.PlantNr, self.FileNr}
  47. }