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.

58 lines
2.8 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 : PrintRuleInfo
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : PrintRuleInfo的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-16 15:09:09
  17. *
  18. ******************************************************************************/
  19. type PrintRuleInfo struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PrintRuleInfo-PlantNr"`
  21. OperationId int `xorm:"pk int 'OperationId'" json:"PrintRuleInfo-OperationId"`
  22. PO int `xorm:"int 'PO' not null" json:"PrintRuleInfo-PO"`
  23. StepNo int `xorm:"int 'StepNo' not null" json:"PrintRuleInfo-StepNo"`
  24. StepDesc string `xorm:"nvarchar(200) 'StepDesc' not null" json:"PrintRuleInfo-StepDesc"`
  25. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"PrintRuleInfo-ProjectId"`
  26. DisplayTime int `xorm:"int 'DisplayTime' not null" json:"PrintRuleInfo-DisplayTime"`
  27. PRCtrlPara1 string `xorm:"nvarchar(40) 'PRCtrlPara1' not null" json:"PrintRuleInfo-PRCtrlPara1"`
  28. PRCtrlPara2 string `xorm:"nvarchar(40) 'PRCtrlPara2' not null" json:"PrintRuleInfo-PRCtrlPara2"`
  29. PRCtrlPara3 string `xorm:"nvarchar(40) 'PRCtrlPara3' not null" json:"PrintRuleInfo-PRCtrlPara3"`
  30. PRCtrlPara4 string `xorm:"nvarchar(40) 'PRCtrlPara4' not null" json:"PrintRuleInfo-PRCtrlPara4"`
  31. PRCtrlPara5 string `xorm:"nvarchar(40) 'PRCtrlPara5' not null" json:"PrintRuleInfo-PRCtrlPara5"`
  32. PRCtrlPara6 int `xorm:"int 'PRCtrlPara6' not null" json:"PrintRuleInfo-PRCtrlPara6"`
  33. PRCtrlPara7 int `xorm:"int 'PRCtrlPara7' not null" json:"PrintRuleInfo-PRCtrlPara7"`
  34. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PrintRuleInfo-LastModify"`
  35. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PrintRuleInfo-LastUser"`
  36. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PrintRuleInfo-CreateTime"`
  37. }
  38. /******************************************************************************
  39. *
  40. * @Function Name : GetKey
  41. *-----------------------------------------------------------------------------
  42. *
  43. * @Description : 获取实体的主键
  44. *
  45. * @Return Value : 实体的主键
  46. *
  47. * @Author : 代码生成器创建
  48. *
  49. * @Date : 2021-08-16 15:09:09
  50. *
  51. ******************************************************************************/
  52. func (self *PrintRuleInfo) GetKey() core.PK {
  53. return core.PK{self.PlantNr, self.OperationId}
  54. }