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.

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