广汽安道拓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.

58 lines
3.1 KiB

  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 : ArtCheckRule
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ArtCheckRule的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-11-24 11:19:07
  17. *
  18. ******************************************************************************/
  19. type ArtCheckRule struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"ArtCheckRule-PlantNr"`
  21. AttriCode int `xorm:"pk int 'AttriCode'" json:"ArtCheckRule-AttriCode"`
  22. WorkLineId string `xorm:"pk nvarchar(40) 'WorkLineId'" json:"ArtCheckRule-WorkLineId"`
  23. ProjectId string `xorm:"pk nvarchar(40) 'ProjectId'" json:"ArtCheckRule-ProjectId"`
  24. SubObject string `xorm:"pk nvarchar(40) 'SubObject'" json:"ArtCheckRule-SubObject"`
  25. AttriCodeDesc string `xorm:"nvarchar(100) 'AttriCodeDesc' not null" json:"ArtCheckRule-AttriCodeDesc"`
  26. CodeLength string `xorm:"nvarchar(200) 'CodeLength' not null" json:"ArtCheckRule-CodeLength"`
  27. CheckStartPos int `xorm:"int 'CheckStartPos' not null" json:"ArtCheckRule-CheckStartPos"`
  28. CheckLength int `xorm:"int 'CheckLength' not null" json:"ArtCheckRule-CheckLength"`
  29. CheckObject string `xorm:"nvarchar(40) 'CheckObject' not null" json:"ArtCheckRule-CheckObject"`
  30. OnlyBarCodeFlag bool `xorm:"bit 'OnlyBarCodeFlag' not null" json:"ArtCheckRule-OnlyBarCodeFlag"`
  31. CodeType string `xorm:"nvarchar(40) 'CodeType' not null" json:"ArtCheckRule-CodeType"`
  32. CodeTypeCheckToggle bool `xorm:"bit 'CodeTypeCheckToggle' not null" json:"ArtCheckRule-CodeTypeCheckToggle"`
  33. CheckValue string `xorm:"nvarchar(255) 'CheckValue' not null" json:"ArtCheckRule-CheckValue"`
  34. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"ArtCheckRule-LastModify"`
  35. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"ArtCheckRule-LastUser"`
  36. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"ArtCheckRule-CreateTime"`
  37. }
  38. /******************************************************************************
  39. *
  40. * @Function Name : GetKey
  41. *-----------------------------------------------------------------------------
  42. *
  43. * @Description : 获取实体的主键
  44. *
  45. * @Return Value : 实体的主键
  46. *
  47. * @Author : 代码生成器创建
  48. *
  49. * @Date : 2021-11-24 11:19:07
  50. *
  51. ******************************************************************************/
  52. func (self *ArtCheckRule) GetKey() core.PK {
  53. return core.PK{self.PlantNr, self.AttriCode, self.WorkLineId, self.ProjectId, self.SubObject}
  54. }