8fec5dfd65c6321bb1cd33451f030b1ee40a36ab.svn-base 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package cn.com.goldenwater.dcproj.model;
  2. import cn.com.goldenwater.dcproj.target.Excel;
  3. import org.apache.commons.lang3.builder.ToStringBuilder;
  4. import org.apache.commons.lang3.builder.ToStringStyle;
  5. import javax.validation.constraints.NotBlank;
  6. import javax.validation.constraints.Size;
  7. /**
  8. * 参数配置表 sys_config
  9. *
  10. * @author ruoyi
  11. */
  12. public class SysConfig extends BaseEntity {
  13. private static final long serialVersionUID = 1L;
  14. /**
  15. * 参数主键
  16. */
  17. @Excel(name = "参数主键", cellType = Excel.ColumnType.NUMERIC)
  18. private Long configId;
  19. /**
  20. * 参数名称
  21. */
  22. @Excel(name = "参数名称")
  23. private String configName;
  24. /**
  25. * 参数键名
  26. */
  27. @Excel(name = "参数键名")
  28. private String configKey;
  29. /**
  30. * 参数键值
  31. */
  32. @Excel(name = "参数键值")
  33. private String configValue;
  34. /**
  35. * 系统内置(Y是 N否)
  36. */
  37. @Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
  38. private String configType;
  39. public Long getConfigId() {
  40. return configId;
  41. }
  42. public void setConfigId(Long configId) {
  43. this.configId = configId;
  44. }
  45. @NotBlank(message = "参数名称不能为空")
  46. @Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
  47. public String getConfigName() {
  48. return configName;
  49. }
  50. public void setConfigName(String configName) {
  51. this.configName = configName;
  52. }
  53. @NotBlank(message = "参数键名长度不能为空")
  54. @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
  55. public String getConfigKey() {
  56. return configKey;
  57. }
  58. public void setConfigKey(String configKey) {
  59. this.configKey = configKey;
  60. }
  61. @NotBlank(message = "参数键值不能为空")
  62. @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
  63. public String getConfigValue() {
  64. return configValue;
  65. }
  66. public void setConfigValue(String configValue) {
  67. this.configValue = configValue;
  68. }
  69. public String getConfigType() {
  70. return configType;
  71. }
  72. public void setConfigType(String configType) {
  73. this.configType = configType;
  74. }
  75. @Override
  76. public String toString() {
  77. return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  78. .append("configId", getConfigId())
  79. .append("configName", getConfigName())
  80. .append("configKey", getConfigKey())
  81. .append("configValue", getConfigValue())
  82. .append("configType", getConfigType())
  83. .append("createBy", getCreateBy())
  84. .append("createTime", getCreateTime())
  85. .append("updateBy", getUpdateBy())
  86. .append("updateTime", getUpdateTime())
  87. .append("remark", getRemark())
  88. .toString();
  89. }
  90. }