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.

64 lines
3.3 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 : Snr
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Snr的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-04-13 13:08:46
  17. *
  18. ******************************************************************************/
  19. type Snr struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"Snr-PlantNr"`
  21. SnrId string `xorm:"pk varchar(12) 'SnrId'" json:"Snr-SnrId"`
  22. Descr string `xorm:"varchar(30) 'Descr' not null" json:"Snr-Descr"`
  23. ValidFrom string `xorm:"varchar(8) 'ValidFrom' not null" json:"Snr-ValidFrom"`
  24. ValidTo string `xorm:"varchar(8) 'ValidTo' not null" json:"Snr-ValidTo"`
  25. Prefix string `xorm:"varchar(20) 'Prefix' not null" json:"Snr-Prefix"`
  26. Infix string `xorm:"varchar(20) 'Infix' not null" json:"Snr-Infix"`
  27. Postfix string `xorm:"varchar(20) 'Postfix' not null" json:"Snr-Postfix"`
  28. StartNr int `xorm:"int 'StartNr' not null" json:"Snr-StartNr"`
  29. EndNr int `xorm:"int 'EndNr' not null" json:"Snr-EndNr"`
  30. Step int `xorm:"int 'Step' not null" json:"Snr-Step"`
  31. Length int `xorm:"int 'Length' not null" json:"Snr-Length"`
  32. NextNr int `xorm:"int 'NextNr' not null" json:"Snr-NextNr"`
  33. LastNrCreate string `xorm:"varchar(14) 'LastNrCreate' not null" json:"Snr-LastNrCreate"`
  34. ResetNrRule string `xorm:"varchar(10) 'ResetNrRule' not null" json:"Snr-ResetNrRule"`
  35. OverflowHandling string `xorm:"varchar(10) 'OverflowHandling' not null" json:"Snr-OverflowHandling"`
  36. IdentifierFormat string `xorm:"varchar(10) 'IdentifierFormat' not null" json:"Snr-IdentifierFormat"`
  37. DateVariable string `xorm:"varchar(20) 'DateVariable' not null" json:"Snr-DateVariable"`
  38. DateFormat string `xorm:"varchar(14) 'DateFormat' not null" json:"Snr-DateFormat"`
  39. Identifierlayout string `xorm:"varchar(5) 'Identifierlayout' not null" json:"Snr-Identifierlayout"`
  40. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Snr-LastModify"`
  41. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Snr-LastUser"`
  42. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Snr-CreateTime"`
  43. }
  44. /******************************************************************************
  45. *
  46. * @Function Name : GetKey
  47. *-----------------------------------------------------------------------------
  48. *
  49. * @Description : 获取实体的主键
  50. *
  51. * @Return Value : 实体的主键
  52. *
  53. * @Author : 代码生成器创建
  54. *
  55. * @Date : 2021-04-13 13:08:46
  56. *
  57. ******************************************************************************/
  58. func (self *Snr) GetKey() core.PK {
  59. return core.PK{self.PlantNr, self.SnrId}
  60. }