TXinyiForecastComparison.java 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. package com.slibra.business.domain;
  2. import java.math.BigDecimal;
  3. import java.util.Objects;
  4. import com.slibra.common.DecimalUtils;
  5. import lombok.AllArgsConstructor;
  6. import lombok.Builder;
  7. import lombok.Data;
  8. import lombok.NoArgsConstructor;
  9. import org.apache.commons.lang3.builder.ToStringBuilder;
  10. import org.apache.commons.lang3.builder.ToStringStyle;
  11. import com.slibra.common.annotation.Excel;
  12. import com.slibra.common.core.domain.BaseEntity;
  13. import static com.slibra.common.constant.MyConstants.PERCENT_SYMBOL;
  14. import static com.slibra.common.constant.MyConstants.SORT_DESC;
  15. /**
  16. * 信义预测对比对象 t_xinyi_forecast_comparison
  17. *
  18. * @author slibra
  19. * @date 2024-06-18
  20. */
  21. @Data
  22. @Builder
  23. @AllArgsConstructor
  24. @NoArgsConstructor
  25. public class TXinyiForecastComparison extends BaseEntity
  26. {
  27. private static final long serialVersionUID = 1L;
  28. /** 主键 */
  29. private Long id;
  30. /** 预测类型 */
  31. @Excel(name = "预测类型")
  32. private String category;
  33. /** 预测时间1 */
  34. @Excel(name = "预测时间1")
  35. private String forecastTimeOne;
  36. /** 实际值1 */
  37. @Excel(name = "实际值1")
  38. private BigDecimal realOne;
  39. /** 红杉预测值1 */
  40. @Excel(name = "红杉预测值1")
  41. private BigDecimal hsForecastOne;
  42. /** 红杉值1误差率 */
  43. @Excel(name = "红杉值1误差率")
  44. private BigDecimal hsErrorRateOne;
  45. /** 红杉预测1差值 */
  46. @Excel(name = "红杉预测1差值")
  47. private BigDecimal hsOneSubtract;
  48. /** 跃渊预测值1 */
  49. @Excel(name = "跃渊预测值1")
  50. private BigDecimal yyForecastOne;
  51. /** 跃渊值1误差率 */
  52. @Excel(name = "跃渊值1误差率")
  53. private BigDecimal yyErrorRateOne;
  54. /** 跃渊预测1差值 */
  55. @Excel(name = "跃渊预测1差值")
  56. private BigDecimal yyOneSubtract;
  57. /** 机理模型预测值1 */
  58. @Excel(name = "机理模型预测值1")
  59. private BigDecimal jlForecastOne;
  60. /** 机理模型预测值1误差率 */
  61. @Excel(name = "机理模型预测值1误差率")
  62. private BigDecimal jlErrorRateOne;
  63. /** 机理模型预测值1差值 */
  64. @Excel(name = "机理模型预测值1差值")
  65. private BigDecimal jlOneSubtract;
  66. /** 预测时间2 */
  67. @Excel(name = "预测时间2")
  68. private String forecastTimeTwo;
  69. /** 实际值2 */
  70. @Excel(name = "实际值2")
  71. private BigDecimal realTwo;
  72. /** 红杉预测值2 */
  73. @Excel(name = "红杉预测值2")
  74. private BigDecimal hsForecastTwo;
  75. /** 红杉值2误差率 */
  76. @Excel(name = "红杉值2误差率")
  77. private BigDecimal hsErrorRateTwo;
  78. /** 红杉预测2差值 */
  79. @Excel(name = "红杉预测2差值")
  80. private BigDecimal hsTwoSubtract;
  81. /** 跃渊预测值2 */
  82. @Excel(name = "跃渊预测值2")
  83. private BigDecimal yyForecastTwo;
  84. /** 跃渊值2误差率 */
  85. @Excel(name = "跃渊值2误差率")
  86. private BigDecimal yyErrorRateTwo;
  87. /** 跃渊预测2差值 */
  88. @Excel(name = "跃渊预测2差值")
  89. private BigDecimal yyTwoSubtract;
  90. /** 机理模型预测值1 */
  91. @Excel(name = "机理模型预测值1")
  92. private BigDecimal jlForecastTwo;
  93. /** 机理模型预测值1误差率 */
  94. @Excel(name = "机理模型预测值1误差率")
  95. private BigDecimal jlErrorRateTwo;
  96. /** 机理模型预测值1差值 */
  97. @Excel(name = "机理模型预测值1差值")
  98. private BigDecimal jlTwoSubtract;
  99. /** 预测时间3 */
  100. @Excel(name = "预测时间3")
  101. private String forecastTimeThree;
  102. /** 实际值3 */
  103. @Excel(name = "实际值3")
  104. private BigDecimal realThree;
  105. /** 红杉预测值3 */
  106. @Excel(name = "红杉预测值3")
  107. private BigDecimal hsForecastThree;
  108. /** 红杉值3误差率 */
  109. @Excel(name = "红杉值3误差率")
  110. private BigDecimal hsErrorRateThree;
  111. /** 红杉预测3差值 */
  112. @Excel(name = "红杉预测3差值")
  113. private BigDecimal hsThreeSubtract;
  114. /** 跃渊预测值3 */
  115. @Excel(name = "跃渊预测值3")
  116. private BigDecimal yyForecastThree;
  117. /** 跃渊值3误差率 */
  118. @Excel(name = "跃渊值3误差率")
  119. private BigDecimal yyErrorRateThree;
  120. /** 跃渊预测3差值 */
  121. @Excel(name = "跃渊预测3差值")
  122. private BigDecimal yyThreeSubtract;
  123. /** 机理模型预测值1 */
  124. @Excel(name = "机理模型预测值1")
  125. private BigDecimal jlForecastThree;
  126. /** 机理模型预测值1误差率 */
  127. @Excel(name = "机理模型预测值1误差率")
  128. private BigDecimal jlErrorRateThree;
  129. /** 机理模型预测值1差值 */
  130. @Excel(name = "机理模型预测值1差值")
  131. private BigDecimal jlThreeSubtract;
  132. /** 删除标志(0代表存在 2代表删除) */
  133. private Long delFlag;
  134. /** 乐观锁 */
  135. @Excel(name = "乐观锁")
  136. private Long revision;
  137. //2024年6月20日14:15:09 新增查询条件
  138. /** 开始时间 2024/06/18 13 格式的*/
  139. private String timeBegin;
  140. /** 截止时间 2024/06/18 13 格式的*/
  141. private String timeEnd;
  142. //2024年08月16日14:23:50 新增字段,降序还是升序
  143. private String sort = SORT_DESC;
  144. //2024年6月24日15:27:47 因为导出关系,必须要set进去才能有结果
  145. /*public String getHsErrorRateOneStr() {
  146. if(Objects.isNull(hsErrorRateOne))
  147. return null;
  148. return DecimalUtils.getAbsAndScale(hsErrorRateOne, 2) + PERCENT_SYMBOL;
  149. }
  150. public String getYyErrorRateOneStr() {
  151. if(Objects.isNull(yyErrorRateOne))
  152. return null;
  153. return DecimalUtils.getAbsAndScale(yyErrorRateOne, 2) + PERCENT_SYMBOL;
  154. }
  155. public String getHsErrorRateTwoStr() {
  156. if(Objects.isNull(hsErrorRateTwo))
  157. return null;
  158. return DecimalUtils.getAbsAndScale(hsErrorRateTwo, 2) + PERCENT_SYMBOL;
  159. }
  160. public String getYyErrorRateTwoStr() {
  161. if(Objects.isNull(yyErrorRateTwo))
  162. return null;
  163. return DecimalUtils.getAbsAndScale(yyErrorRateTwo, 2) + PERCENT_SYMBOL;
  164. }
  165. public String getHsErrorRateThreeStr() {
  166. if(Objects.isNull(hsErrorRateThree))
  167. return null;
  168. return DecimalUtils.getAbsAndScale(hsErrorRateThree, 2) + PERCENT_SYMBOL;
  169. }
  170. public String getYyErrorRateThreeStr() {
  171. if(Objects.isNull(yyErrorRateThree))
  172. return null;
  173. return DecimalUtils.getAbsAndScale(yyErrorRateThree, 2) + PERCENT_SYMBOL;
  174. }*/
  175. }