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