a11dd546992eaccaaced648f6709a0c8ee6f12b5.svn-base 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. package org.jeecg.modules.system.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import io.swagger.annotations.ApiModel;
  7. import io.swagger.annotations.ApiModelProperty;
  8. import lombok.Data;
  9. import lombok.EqualsAndHashCode;
  10. import lombok.experimental.Accessors;
  11. import org.jeecg.common.aspect.annotation.Dict;
  12. import org.jeecgframework.poi.excel.annotation.Excel;
  13. import org.springframework.format.annotation.DateTimeFormat;
  14. /**
  15. * @Description: 多数据源管理
  16. * @Author: jeecg-boot
  17. * @Date: 2019-12-25
  18. * @Version: V1.0
  19. */
  20. @Data
  21. @TableName("sys_data_source")
  22. @EqualsAndHashCode(callSuper = false)
  23. @Accessors(chain = true)
  24. @ApiModel(value = "sys_data_source对象", description = "多数据源管理")
  25. public class SysDataSource {
  26. /**
  27. * id
  28. */
  29. @TableId(type = IdType.ASSIGN_ID)
  30. @ApiModelProperty(value = "id")
  31. private java.lang.String id;
  32. /**
  33. * 数据源编码
  34. */
  35. @Excel(name = "数据源编码", width = 15)
  36. @ApiModelProperty(value = "数据源编码")
  37. private java.lang.String code;
  38. /**
  39. * 数据源名称
  40. */
  41. @Excel(name = "数据源名称", width = 15)
  42. @ApiModelProperty(value = "数据源名称")
  43. private java.lang.String name;
  44. /**
  45. * 描述
  46. */
  47. @Excel(name = "备注", width = 15)
  48. @ApiModelProperty(value = "备注")
  49. private java.lang.String remark;
  50. /**
  51. * 数据库类型
  52. */
  53. @Dict(dicCode = "database_type")
  54. @Excel(name = "数据库类型", width = 15, dicCode = "database_type")
  55. @ApiModelProperty(value = "数据库类型")
  56. private java.lang.String dbType;
  57. /**
  58. * 驱动类
  59. */
  60. @Excel(name = "驱动类", width = 15)
  61. @ApiModelProperty(value = "驱动类")
  62. private java.lang.String dbDriver;
  63. /**
  64. * 数据源地址
  65. */
  66. @Excel(name = "数据源地址", width = 15)
  67. @ApiModelProperty(value = "数据源地址")
  68. private java.lang.String dbUrl;
  69. /**
  70. * 数据库名称
  71. */
  72. @Excel(name = "数据库名称", width = 15)
  73. @ApiModelProperty(value = "数据库名称")
  74. private java.lang.String dbName;
  75. /**
  76. * 用户名
  77. */
  78. @Excel(name = "用户名", width = 15)
  79. @ApiModelProperty(value = "用户名")
  80. private java.lang.String dbUsername;
  81. /**
  82. * 密码
  83. */
  84. @Excel(name = "密码", width = 15)
  85. @ApiModelProperty(value = "密码")
  86. private java.lang.String dbPassword;
  87. /**
  88. * 创建人
  89. */
  90. @ApiModelProperty(value = "创建人")
  91. private java.lang.String createBy;
  92. /**
  93. * 创建日期
  94. */
  95. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  96. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  97. @ApiModelProperty(value = "创建日期")
  98. private java.util.Date createTime;
  99. /**
  100. * 更新人
  101. */
  102. @ApiModelProperty(value = "更新人")
  103. private java.lang.String updateBy;
  104. /**
  105. * 更新日期
  106. */
  107. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  108. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  109. @ApiModelProperty(value = "更新日期")
  110. private java.util.Date updateTime;
  111. /**
  112. * 所属部门
  113. */
  114. @Excel(name = "所属部门", width = 15)
  115. @ApiModelProperty(value = "所属部门")
  116. private java.lang.String sysOrgCode;
  117. }