123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- package com.slibra.business.domain;
- import java.math.BigDecimal;
- import java.util.Objects;
- import com.slibra.common.DecimalUtils;
- import lombok.AllArgsConstructor;
- import lombok.Builder;
- import lombok.Data;
- import lombok.NoArgsConstructor;
- import org.apache.commons.lang3.builder.ToStringBuilder;
- import org.apache.commons.lang3.builder.ToStringStyle;
- import com.slibra.common.annotation.Excel;
- import com.slibra.common.core.domain.BaseEntity;
- import static com.slibra.common.constant.MyConstants.PERCENT_SYMBOL;
- import static com.slibra.common.constant.MyConstants.SORT_DESC;
- /**
- * 信义预测对比对象 t_xinyi_forecast_comparison
- *
- * @author slibra
- * @date 2024-06-18
- */
- @Data
- @Builder
- @AllArgsConstructor
- @NoArgsConstructor
- public class TXinyiForecastComparison extends BaseEntity
- {
- private static final long serialVersionUID = 1L;
- /** 主键 */
- private Long id;
- /** 预测类型 */
- @Excel(name = "预测类型")
- private String category;
- /** 预测时间1 */
- @Excel(name = "预测时间1")
- private String forecastTimeOne;
- /** 实际值1 */
- @Excel(name = "实际值1")
- private BigDecimal realOne;
- /** 红杉预测值1 */
- @Excel(name = "红杉预测值1")
- private BigDecimal hsForecastOne;
- /** 红杉值1误差率 */
- @Excel(name = "红杉值1误差率")
- private BigDecimal hsErrorRateOne;
- /** 红杉预测1差值 */
- @Excel(name = "红杉预测1差值")
- private BigDecimal hsOneSubtract;
- /** 跃渊预测值1 */
- @Excel(name = "跃渊预测值1")
- private BigDecimal yyForecastOne;
- /** 跃渊值1误差率 */
- @Excel(name = "跃渊值1误差率")
- private BigDecimal yyErrorRateOne;
- /** 跃渊预测1差值 */
- @Excel(name = "跃渊预测1差值")
- private BigDecimal yyOneSubtract;
- /** 机理模型预测值1 */
- @Excel(name = "机理模型预测值1")
- private BigDecimal jlForecastOne;
- /** 机理模型预测值1误差率 */
- @Excel(name = "机理模型预测值1误差率")
- private BigDecimal jlErrorRateOne;
- /** 机理模型预测值1差值 */
- @Excel(name = "机理模型预测值1差值")
- private BigDecimal jlOneSubtract;
- /** 预测时间2 */
- @Excel(name = "预测时间2")
- private String forecastTimeTwo;
- /** 实际值2 */
- @Excel(name = "实际值2")
- private BigDecimal realTwo;
- /** 红杉预测值2 */
- @Excel(name = "红杉预测值2")
- private BigDecimal hsForecastTwo;
- /** 红杉值2误差率 */
- @Excel(name = "红杉值2误差率")
- private BigDecimal hsErrorRateTwo;
- /** 红杉预测2差值 */
- @Excel(name = "红杉预测2差值")
- private BigDecimal hsTwoSubtract;
- /** 跃渊预测值2 */
- @Excel(name = "跃渊预测值2")
- private BigDecimal yyForecastTwo;
- /** 跃渊值2误差率 */
- @Excel(name = "跃渊值2误差率")
- private BigDecimal yyErrorRateTwo;
- /** 跃渊预测2差值 */
- @Excel(name = "跃渊预测2差值")
- private BigDecimal yyTwoSubtract;
- /** 机理模型预测值1 */
- @Excel(name = "机理模型预测值1")
- private BigDecimal jlForecastTwo;
- /** 机理模型预测值1误差率 */
- @Excel(name = "机理模型预测值1误差率")
- private BigDecimal jlErrorRateTwo;
- /** 机理模型预测值1差值 */
- @Excel(name = "机理模型预测值1差值")
- private BigDecimal jlTwoSubtract;
- /** 预测时间3 */
- @Excel(name = "预测时间3")
- private String forecastTimeThree;
- /** 实际值3 */
- @Excel(name = "实际值3")
- private BigDecimal realThree;
- /** 红杉预测值3 */
- @Excel(name = "红杉预测值3")
- private BigDecimal hsForecastThree;
- /** 红杉值3误差率 */
- @Excel(name = "红杉值3误差率")
- private BigDecimal hsErrorRateThree;
- /** 红杉预测3差值 */
- @Excel(name = "红杉预测3差值")
- private BigDecimal hsThreeSubtract;
- /** 跃渊预测值3 */
- @Excel(name = "跃渊预测值3")
- private BigDecimal yyForecastThree;
- /** 跃渊值3误差率 */
- @Excel(name = "跃渊值3误差率")
- private BigDecimal yyErrorRateThree;
- /** 跃渊预测3差值 */
- @Excel(name = "跃渊预测3差值")
- private BigDecimal yyThreeSubtract;
- /** 机理模型预测值1 */
- @Excel(name = "机理模型预测值1")
- private BigDecimal jlForecastThree;
- /** 机理模型预测值1误差率 */
- @Excel(name = "机理模型预测值1误差率")
- private BigDecimal jlErrorRateThree;
- /** 机理模型预测值1差值 */
- @Excel(name = "机理模型预测值1差值")
- private BigDecimal jlThreeSubtract;
- /** 删除标志(0代表存在 2代表删除) */
- private Long delFlag;
- /** 乐观锁 */
- @Excel(name = "乐观锁")
- private Long revision;
- //2024年6月20日14:15:09 新增查询条件
- /** 开始时间 2024/06/18 13 格式的*/
- private String timeBegin;
- /** 截止时间 2024/06/18 13 格式的*/
- private String timeEnd;
- //2024年08月16日14:23:50 新增字段,降序还是升序
- private String sort = SORT_DESC;
- //2024年6月24日15:27:47 因为导出关系,必须要set进去才能有结果
- /*public String getHsErrorRateOneStr() {
- if(Objects.isNull(hsErrorRateOne))
- return null;
- return DecimalUtils.getAbsAndScale(hsErrorRateOne, 2) + PERCENT_SYMBOL;
- }
- public String getYyErrorRateOneStr() {
- if(Objects.isNull(yyErrorRateOne))
- return null;
- return DecimalUtils.getAbsAndScale(yyErrorRateOne, 2) + PERCENT_SYMBOL;
- }
- public String getHsErrorRateTwoStr() {
- if(Objects.isNull(hsErrorRateTwo))
- return null;
- return DecimalUtils.getAbsAndScale(hsErrorRateTwo, 2) + PERCENT_SYMBOL;
- }
- public String getYyErrorRateTwoStr() {
- if(Objects.isNull(yyErrorRateTwo))
- return null;
- return DecimalUtils.getAbsAndScale(yyErrorRateTwo, 2) + PERCENT_SYMBOL;
- }
- public String getHsErrorRateThreeStr() {
- if(Objects.isNull(hsErrorRateThree))
- return null;
- return DecimalUtils.getAbsAndScale(hsErrorRateThree, 2) + PERCENT_SYMBOL;
- }
- public String getYyErrorRateThreeStr() {
- if(Objects.isNull(yyErrorRateThree))
- return null;
- return DecimalUtils.getAbsAndScale(yyErrorRateThree, 2) + PERCENT_SYMBOL;
- }*/
- }
|