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

49 lines
2.0 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package pdc
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : ScrewDown
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ScrewDown的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-05-27 11:35:42
  17. *
  18. ******************************************************************************/
  19. type ScrewDown struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PDC_ScrewDown-PlantNr"`
  21. ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"PDC_ScrewDown-ArtId"`
  22. ScrewPos int `xorm:"pk int 'ScrewPos'" json:"PDC_ScrewDown-ScrewPos"`
  23. Result bool `xorm:"pk bit 'Result'" json:"PDC_ScrewDown-Result"`
  24. PicPath string `xorm:"varchar(255) 'PicPath' not null" json:"PDC_ScrewDown-PicPath"`
  25. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PDC_ScrewDown-LastModify"`
  26. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PDC_ScrewDown-LastUser"`
  27. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PDC_ScrewDown-CreateTime"`
  28. }
  29. /******************************************************************************
  30. *
  31. * @Function Name : GetKey
  32. *-----------------------------------------------------------------------------
  33. *
  34. * @Description : 获取实体的主键
  35. *
  36. * @Return Value : 实体的主键
  37. *
  38. * @Author : 代码生成器创建
  39. *
  40. * @Date : 2021-05-24 10:49:50
  41. *
  42. ******************************************************************************/
  43. func (self *ScrewDown) GetKey() core.PK {
  44. return core.PK{self.PlantNr, self.ArtId, self.ScrewPos, self.Result}
  45. }