SysDictData.java 4.5 KB

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