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.

71 lines
4.0 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LEIT_PM/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : Script
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Script的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-20 11:28:44
  17. *
  18. ******************************************************************************/
  19. type Script struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"Script-PlantNr"`
  21. Script string `xorm:"pk varchar(50) 'Script'" json:"Script-Script"`
  22. Bez string `xorm:"varchar(50) 'Bez' not null" json:"Script-Bez"`
  23. ScriptTable string `xorm:"varchar(40) 'ScriptTable' not null" json:"Script-ScriptTable"`
  24. ScriptType string `xorm:"varchar(20) 'ScriptType' not null" json:"Script-ScriptType"`
  25. FilePath string `xorm:"varchar(50) 'FilePath' not null" json:"Script-FilePath"`
  26. Separator string `xorm:"varchar(20) 'Separator' not null" json:"Script-Separator"`
  27. UseHead int `xorm:"int 'UseHead' not null" json:"Script-UseHead"`
  28. ClearTable int `xorm:"int 'ClearTable' not null" json:"Script-ClearTable"`
  29. StartRow int `xorm:"int 'StartRow' not null" json:"Script-StartRow"`
  30. StartCol int `xorm:"int 'StartCol' not null" json:"Script-StartCol"`
  31. AppendNewRecord int `xorm:"int 'AppendNewRecord' not null" json:"Script-AppendNewRecord"`
  32. UpdateRecord int `xorm:"int 'UpdateRecord' not null" json:"Script-UpdateRecord"`
  33. CallSpecFunc int `xorm:"int 'CallSpecFunc' not null" json:"Script-CallSpecFunc"`
  34. CallFunction string `xorm:"varchar(100) 'CallFunction' not null" json:"Script-CallFunction"`
  35. InputPara1 string `xorm:"varchar(255) 'InputPara1' not null" json:"Script-InputPara1"`
  36. Para1Type int `xorm:"int 'Para1Type' not null" json:"Script-Para1Type"`
  37. Para1Descr string `xorm:"varchar(40) 'Para1Descr' not null" json:"Script-Para1Descr"`
  38. InputPara2 string `xorm:"varchar(255) 'InputPara2' not null" json:"Script-InputPara2"`
  39. Para2Type int `xorm:"int 'Para2Type' not null" json:"Script-Para2Type"`
  40. Para2Descr string `xorm:"varchar(40) 'Para2Descr' not null" json:"Script-Para2Descr"`
  41. InputPara3 string `xorm:"varchar(255) 'InputPara3' not null" json:"Script-InputPara3"`
  42. Para3Type int `xorm:"int 'Para3Type' not null" json:"Script-Para3Type"`
  43. Para3Descr string `xorm:"varchar(40) 'Para3Descr' not null" json:"Script-Para3Descr"`
  44. InputPara4 string `xorm:"varchar(255) 'InputPara4' not null" json:"Script-InputPara4"`
  45. Para4Type int `xorm:"int 'Para4Type' not null" json:"Script-Para4Type"`
  46. Para4Descr string `xorm:"varchar(40) 'Para4Descr' not null" json:"Script-Para4Descr"`
  47. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Script-LastModify"`
  48. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Script-LastUser"`
  49. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Script-CreateTime"`
  50. }
  51. /******************************************************************************
  52. *
  53. * @Function Name : GetKey
  54. *-----------------------------------------------------------------------------
  55. *
  56. * @Description : 获取实体的主键
  57. *
  58. * @Return Value : 实体的主键
  59. *
  60. * @Author : 代码生成器创建
  61. *
  62. * @Date : 2021-08-20 11:28:44
  63. *
  64. ******************************************************************************/
  65. func (self *Script) GetKey() core.PK {
  66. return core.PK{self.PlantNr, self.Script}
  67. }