广汽安道拓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
2.5 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 : Etl
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Etl的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-04-13 13:08:46
  17. *
  18. ******************************************************************************/
  19. type Etl struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"Etl-PlantNr"`
  21. EtlId int `xorm:"pk int 'EtlId'" json:"Etl-EtlId"`
  22. FromDb string `xorm:"varchar(32) 'FromDb'" json:"Etl-FromDb"`
  23. FromTable string `xorm:"varchar(32) 'FromTable'" json:"Etl-FromTable"`
  24. ToDb string `xorm:"varchar(32) 'ToDb'" json:"Etl-ToDb"`
  25. ToTable string `xorm:"varchar(32) 'ToTable'" json:"Etl-ToTable"`
  26. SqlShow string `xorm:"varchar(255) 'SqlShow'" json:"Etl-SqlShow"`
  27. Status string `xorm:"varchar(10) 'Status'" json:"Etl-Status"`
  28. SearchType int `xorm:"int 'SearchType'" json:"Etl-SearchType"`
  29. SearchTime string `xorm:"varchar(20) 'SearchTime'" json:"Etl-SearchTime"`
  30. SearchFiled string `xorm:"varchar(64) 'SearchFiled'" json:"Etl-SearchFiled"`
  31. ToDriverName string `xorm:"varchar(64) 'ToDriverName'" json:"Etl-ToDriverName"`
  32. ToType string `xorm:"varchar(30) 'ToType'" json:"Etl-ToType"`
  33. ChooseType string `xorm:"varchar(30) 'ChooseType'" json:"Etl-ChooseType"`
  34. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Etl-LastModify"`
  35. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Etl-LastUser"`
  36. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Etl-CreateTime"`
  37. }
  38. /******************************************************************************
  39. *
  40. * @Function Name : GetKey
  41. *-----------------------------------------------------------------------------
  42. *
  43. * @Description : 获取实体的主键
  44. *
  45. * @Return Value : 实体的主键
  46. *
  47. * @Author : 代码生成器创建
  48. *
  49. * @Date : 2021-04-13 13:08:46
  50. *
  51. ******************************************************************************/
  52. func (self *Etl) GetKey() core.PK {
  53. return core.PK{self.PlantNr, self.EtlId}
  54. }