Chart.java 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. package space.anyi.BI.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import java.io.Serializable;
  7. import java.util.Date;
  8. /**
  9. * 图标表
  10. * @TableName chart
  11. */
  12. @TableName(value ="chart")
  13. public class Chart implements Serializable {
  14. /**
  15. * 图表ID
  16. */
  17. @TableId(type = IdType.AUTO)
  18. private Long id;
  19. /**
  20. * 分析目标
  21. */
  22. private String analysisTarget;
  23. /**
  24. * 图标数据
  25. */
  26. private String chartData;
  27. /**
  28. * 图标类型
  29. */
  30. private String chartType;
  31. /**
  32. * 生成的图表数据
  33. */
  34. private String generatedChartData;
  35. /**
  36. * 生成的分析结论
  37. */
  38. private String analysisConclusion;
  39. /**
  40. * 创建用户ID
  41. */
  42. private Long userId;
  43. /**
  44. * 创建时间
  45. */
  46. private Date createdTime;
  47. /**
  48. * 更新时间
  49. */
  50. private Date updatedTime;
  51. /**
  52. * 删除标志,0:未删除,1:已删除
  53. */
  54. private Integer deleteFlag;
  55. @TableField(exist = false)
  56. private static final long serialVersionUID = 1L;
  57. /**
  58. * 图表ID
  59. */
  60. public Long getId() {
  61. return id;
  62. }
  63. /**
  64. * 图表ID
  65. */
  66. public void setId(Long id) {
  67. this.id = id;
  68. }
  69. /**
  70. * 分析目标
  71. */
  72. public String getAnalysisTarget() {
  73. return analysisTarget;
  74. }
  75. /**
  76. * 分析目标
  77. */
  78. public void setAnalysisTarget(String analysisTarget) {
  79. this.analysisTarget = analysisTarget;
  80. }
  81. /**
  82. * 图标数据
  83. */
  84. public String getChartData() {
  85. return chartData;
  86. }
  87. /**
  88. * 图标数据
  89. */
  90. public void setChartData(String chartData) {
  91. this.chartData = chartData;
  92. }
  93. /**
  94. * 图标类型
  95. */
  96. public String getChartType() {
  97. return chartType;
  98. }
  99. /**
  100. * 图标类型
  101. */
  102. public void setChartType(String chartType) {
  103. this.chartType = chartType;
  104. }
  105. /**
  106. * 生成的图表数据
  107. */
  108. public String getGeneratedChartData() {
  109. return generatedChartData;
  110. }
  111. /**
  112. * 生成的图表数据
  113. */
  114. public void setGeneratedChartData(String generatedChartData) {
  115. this.generatedChartData = generatedChartData;
  116. }
  117. /**
  118. * 生成的分析结论
  119. */
  120. public String getAnalysisConclusion() {
  121. return analysisConclusion;
  122. }
  123. /**
  124. * 生成的分析结论
  125. */
  126. public void setAnalysisConclusion(String analysisConclusion) {
  127. this.analysisConclusion = analysisConclusion;
  128. }
  129. /**
  130. * 创建用户ID
  131. */
  132. public Long getUserId() {
  133. return userId;
  134. }
  135. /**
  136. * 创建用户ID
  137. */
  138. public void setUserId(Long userId) {
  139. this.userId = userId;
  140. }
  141. /**
  142. * 创建时间
  143. */
  144. public Date getCreatedTime() {
  145. return createdTime;
  146. }
  147. /**
  148. * 创建时间
  149. */
  150. public void setCreatedTime(Date createdTime) {
  151. this.createdTime = createdTime;
  152. }
  153. /**
  154. * 更新时间
  155. */
  156. public Date getUpdatedTime() {
  157. return updatedTime;
  158. }
  159. /**
  160. * 更新时间
  161. */
  162. public void setUpdatedTime(Date updatedTime) {
  163. this.updatedTime = updatedTime;
  164. }
  165. /**
  166. * 删除标志,0:未删除,1:已删除
  167. */
  168. public Integer getDeleteFlag() {
  169. return deleteFlag;
  170. }
  171. /**
  172. * 删除标志,0:未删除,1:已删除
  173. */
  174. public void setDeleteFlag(Integer deleteFlag) {
  175. this.deleteFlag = deleteFlag;
  176. }
  177. @Override
  178. public boolean equals(Object that) {
  179. if (this == that) {
  180. return true;
  181. }
  182. if (that == null) {
  183. return false;
  184. }
  185. if (getClass() != that.getClass()) {
  186. return false;
  187. }
  188. Chart other = (Chart) that;
  189. return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
  190. && (this.getAnalysisTarget() == null ? other.getAnalysisTarget() == null : this.getAnalysisTarget().equals(other.getAnalysisTarget()))
  191. && (this.getChartData() == null ? other.getChartData() == null : this.getChartData().equals(other.getChartData()))
  192. && (this.getChartType() == null ? other.getChartType() == null : this.getChartType().equals(other.getChartType()))
  193. && (this.getGeneratedChartData() == null ? other.getGeneratedChartData() == null : this.getGeneratedChartData().equals(other.getGeneratedChartData()))
  194. && (this.getAnalysisConclusion() == null ? other.getAnalysisConclusion() == null : this.getAnalysisConclusion().equals(other.getAnalysisConclusion()))
  195. && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
  196. && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
  197. && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()))
  198. && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()));
  199. }
  200. @Override
  201. public int hashCode() {
  202. final int prime = 31;
  203. int result = 1;
  204. result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
  205. result = prime * result + ((getAnalysisTarget() == null) ? 0 : getAnalysisTarget().hashCode());
  206. result = prime * result + ((getChartData() == null) ? 0 : getChartData().hashCode());
  207. result = prime * result + ((getChartType() == null) ? 0 : getChartType().hashCode());
  208. result = prime * result + ((getGeneratedChartData() == null) ? 0 : getGeneratedChartData().hashCode());
  209. result = prime * result + ((getAnalysisConclusion() == null) ? 0 : getAnalysisConclusion().hashCode());
  210. result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
  211. result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
  212. result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
  213. result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
  214. return result;
  215. }
  216. @Override
  217. public String toString() {
  218. StringBuilder sb = new StringBuilder();
  219. sb.append(getClass().getSimpleName());
  220. sb.append(" [");
  221. sb.append("Hash = ").append(hashCode());
  222. sb.append(", id=").append(id);
  223. sb.append(", analysisTarget=").append(analysisTarget);
  224. sb.append(", chartData=").append(chartData);
  225. sb.append(", chartType=").append(chartType);
  226. sb.append(", generatedChartData=").append(generatedChartData);
  227. sb.append(", analysisConclusion=").append(analysisConclusion);
  228. sb.append(", createdBy=").append(userId);
  229. sb.append(", createdAt=").append(createdTime);
  230. sb.append(", updatedAt=").append(updatedTime);
  231. sb.append(", deleteFlag=").append(deleteFlag);
  232. sb.append(", serialVersionUID=").append(serialVersionUID);
  233. sb.append("]");
  234. return sb.toString();
  235. }
  236. }