广汽安道拓Acura项目MES后台
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.

68 lines
4.2 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_ACURA_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 : 2022-03-16 18:01:44
  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. WorkPlaceNr int `xorm:"pk int 'WorkPlaceNr'" json:"PrintBasicRuleInfo-WorkPlaceNr"`
  23. MainCodeName string `xorm:"pk nvarchar(40) 'MainCodeName'" json:"PrintBasicRuleInfo-MainCodeName"`
  24. TemplateFile string `xorm:"pk nvarchar(40) 'TemplateFile'" json:"PrintBasicRuleInfo-TemplateFile"`
  25. PO string `xorm:"nvarchar(40) 'PO' not null" json:"PrintBasicRuleInfo-PO"`
  26. StepNo int `xorm:"int 'StepNo' not null" json:"PrintBasicRuleInfo-StepNo"`
  27. StepDesc string `xorm:"nvarchar(100) 'StepDesc' not null" json:"PrintBasicRuleInfo-StepDesc"`
  28. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"PrintBasicRuleInfo-ProjectId"`
  29. TemplateChooseModel string `xorm:"nvarchar(40) 'TemplateChooseModel' not null" json:"PrintBasicRuleInfo-TemplateChooseModel"`
  30. DependPO string `xorm:"nvarchar(40) 'DependPO' not null" json:"PrintBasicRuleInfo-DependPO"`
  31. DependStepNo int `xorm:"int 'DependStepNo' not null" json:"PrintBasicRuleInfo-DependStepNo"`
  32. DependRuleId int `xorm:"int 'DependRuleId' not null" json:"PrintBasicRuleInfo-DependRuleId"`
  33. DependValue string `xorm:"nvarchar(40) 'DependValue' not null" json:"PrintBasicRuleInfo-DependValue"`
  34. Action string `xorm:"nvarchar(20) 'Action' not null" json:"PrintBasicRuleInfo-Action"`
  35. WhetherCheckContent int `xorm:"int 'WhetherCheckContent' not null" json:"PrintBasicRuleInfo-WhetherCheckContent"`
  36. PrinterId string `xorm:"nvarchar(40) 'PrinterId' not null" json:"PrintBasicRuleInfo-PrinterId"`
  37. TemplateId string `xorm:"nvarchar(40) 'TemplateId'" json:"PrintBasicRuleInfo-TemplateId"`
  38. TemplateType string `xorm:"nvarchar(10) 'TemplateType'" json:"PrintBasicRuleInfo-TemplateType"`
  39. Qty int `xorm:"int 'Qty' not null" json:"PrintBasicRuleInfo-Qty"`
  40. CollectScanBarcode bool `xorm:"bit 'CollectScanBarcode'" json:"PrintBasicRuleInfo-CollectScanBarcode"`
  41. ScanOperationId int `xorm:"int 'ScanOperationId'" json:"PrintBasicRuleInfo-ScanOperationId"`
  42. LabelDetailPos string `xorm:"nvarchar(255) 'LabelDetailPos'" json:"PrintBasicRuleInfo-LabelDetailPos"`
  43. ScanPo string `xorm:"nvarchar(40) 'ScanPo'" json:"PrintBasicRuleInfo-ScanPo"`
  44. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PrintBasicRuleInfo-LastModify"`
  45. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PrintBasicRuleInfo-LastUser"`
  46. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PrintBasicRuleInfo-CreateTime"`
  47. }
  48. /******************************************************************************
  49. *
  50. * @Function Name : GetKey
  51. *-----------------------------------------------------------------------------
  52. *
  53. * @Description : 获取实体的主键
  54. *
  55. * @Return Value : 实体的主键
  56. *
  57. * @Author : 代码生成器创建
  58. *
  59. * @Date : 2022-03-16 18:01:44
  60. *
  61. ******************************************************************************/
  62. func (self *PrintBasicRuleInfo) GetKey() core.PK {
  63. return core.PK{self.PlantNr, self.OperationId, self.WorkPlaceNr, self.MainCodeName, self.TemplateFile}
  64. }