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.5 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_LF_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : PrintInfoCreateRecord
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : PrintInfoCreateRecord的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-09-16 13:10:56
  17. *
  18. ******************************************************************************/
  19. type PrintInfoCreateRecord struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PrintInfoCreateRecord-PlantNr"`
  21. WorkLineid string `xorm:"pk nvarchar(40) 'WorkLineid'" json:"PrintInfoCreateRecord-WorkLineid"`
  22. SerialOrderId string `xorm:"pk nvarchar(100) 'SerialOrderId'" json:"PrintInfoCreateRecord-SerialOrderId"`
  23. TemplateId string `xorm:"nvarchar(64) 'TemplateId' not null" json:"PrintInfoCreateRecord-TemplateId"`
  24. SubmitPO int `xorm:"int 'SubmitPO' not null" json:"PrintInfoCreateRecord-SubmitPO"`
  25. SubmitWorkPlaceNr string `xorm:"nvarchar(40) 'SubmitWorkPlaceNr' not null" json:"PrintInfoCreateRecord-SubmitWorkPlaceNr"`
  26. Status int `xorm:"int 'Status' not null" json:"PrintInfoCreateRecord-Status"`
  27. CreateId int64 `xorm:"bigint 'CreateId' not null autoincr" json:"PrintInfoCreateRecord-CreateId"`
  28. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PrintInfoCreateRecord-LastModify"`
  29. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PrintInfoCreateRecord-LastUser"`
  30. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PrintInfoCreateRecord-CreateTime"`
  31. }
  32. /******************************************************************************
  33. *
  34. * @Function Name : GetKey
  35. *-----------------------------------------------------------------------------
  36. *
  37. * @Description : 获取实体的主键
  38. *
  39. * @Return Value : 实体的主键
  40. *
  41. * @Author : 代码生成器创建
  42. *
  43. * @Date : 2021-09-16 13:10:56
  44. *
  45. ******************************************************************************/
  46. func (self *PrintInfoCreateRecord) GetKey() core.PK {
  47. return core.PK{self.PlantNr, self.WorkLineid, self.SerialOrderId}
  48. }