SysDictData.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. package com.lqkj.system.entity;
  2. import com.lqkj.common.annotation.Excel;
  3. import com.lqkj.common.annotation.Excel.ColumnType;
  4. import com.lqkj.common.core.model.BaseEntity;
  5. import org.apache.commons.lang3.builder.ToStringBuilder;
  6. import org.apache.commons.lang3.builder.ToStringStyle;
  7. import javax.validation.constraints.Size;
  8. /**
  9. * 字典数据表 sys_dict_data
  10. *
  11. * @author lh
  12. */
  13. public class SysDictData extends BaseEntity
  14. {
  15. private static final long serialVersionUID = 1L;
  16. /** 字典编码 */
  17. @Excel(name = "字典编码", cellType = ColumnType.NUMERIC)
  18. private Integer dictCode;
  19. /** 字典排序 */
  20. @Excel(name = "字典排序", cellType = ColumnType.NUMERIC)
  21. private Integer dictSort;
  22. /** 字典标签 */
  23. @Excel(name = "字典标签")
  24. private String dictLabel;
  25. /** 字典键值 */
  26. @Excel(name = "字典键值")
  27. private String dictValue;
  28. /** 字典类型 */
  29. @Excel(name = "字典类型")
  30. private String dictType;
  31. /** 样式属性(其他样式扩展) */
  32. private String cssClass;
  33. /** 表格字典样式 */
  34. private String listClass;
  35. /** 是否默认(true是 false否) */
  36. @Excel(name = "是否默认", readConverterExp = "true=是,false=否")
  37. private Boolean isDefault;
  38. /** 状态(true正常 false停用) */
  39. @Excel(name = "状态", readConverterExp = "true=正常,false=停用")
  40. private Boolean status;
  41. public Integer getDictCode()
  42. {
  43. return dictCode;
  44. }
  45. public void setDictCode(Integer dictCode)
  46. {
  47. this.dictCode = dictCode;
  48. }
  49. public Integer getDictSort()
  50. {
  51. return dictSort;
  52. }
  53. public void setDictSort(Integer dictSort)
  54. {
  55. this.dictSort = dictSort;
  56. }
  57. @Size(min = 0, max = 100, message = "字典标签长度不能超过100个字符")
  58. public String getDictLabel()
  59. {
  60. return dictLabel;
  61. }
  62. public void setDictLabel(String dictLabel)
  63. {
  64. this.dictLabel = dictLabel;
  65. }
  66. @Size(min = 0, max = 255, message = "字典键值长度不能超过100个字符")
  67. public String getDictValue()
  68. {
  69. return dictValue;
  70. }
  71. public void setDictValue(String dictValue)
  72. {
  73. this.dictValue = dictValue;
  74. }
  75. @Size(min = 0, max = 100, message = "字典类型长度不能超过100个字符")
  76. public String getDictType()
  77. {
  78. return dictType;
  79. }
  80. public void setDictType(String dictType)
  81. {
  82. this.dictType = dictType;
  83. }
  84. @Size(min = 0, max = 100, message = "样式属性长度不能超过100个字符")
  85. public String getCssClass()
  86. {
  87. return cssClass;
  88. }
  89. public void setCssClass(String cssClass)
  90. {
  91. this.cssClass = cssClass;
  92. }
  93. public String getListClass()
  94. {
  95. return listClass;
  96. }
  97. public void setListClass(String listClass)
  98. {
  99. this.listClass = listClass;
  100. }
  101. public Boolean getIsDefault() {
  102. return isDefault;
  103. }
  104. public void setIsDefault(Boolean isDefault) {
  105. isDefault = isDefault;
  106. }
  107. public Boolean getStatus() {
  108. return status;
  109. }
  110. public void setStatus(Boolean status) {
  111. this.status = status;
  112. }
  113. @Override
  114. public String toString() {
  115. return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  116. .append("dictCode", getDictCode())
  117. .append("dictSort", getDictSort())
  118. .append("dictLabel", getDictLabel())
  119. .append("dictValue", getDictValue())
  120. .append("dictType", getDictType())
  121. .append("cssClass", getCssClass())
  122. .append("listClass", getListClass())
  123. .append("isDefault", getIsDefault())
  124. .append("status", getStatus())
  125. .append("createBy", getCreateBy())
  126. .append("createTime", getCreateTime())
  127. .append("updateBy", getUpdateBy())
  128. .append("updateTime", getUpdateTime())
  129. .append("remark", getRemark())
  130. .toString();
  131. }
  132. }