fix: 修复趋势表价格精度丢失的问题

This commit is contained in:
han0
2024-07-11 10:33:21 +08:00
parent 55b527934a
commit 0dedf1daf5

View File

@@ -86,59 +86,59 @@ public class PriceResult extends Model<PriceResult> {
@ApiModelProperty("福州交通局价格")
@TableField("PRICE_FTB")
private Integer priceFtb;
private Float priceFtb;
@ApiModelProperty("福州交通局浮动")
@TableField("FLUCTUATING_FTB")
private Integer fluctuatingFtb;
private Float fluctuatingFtb;
@ApiModelProperty("三明钢铁价格")
@TableField("PRICE_SS")
private Integer priceSs;
private Float priceSs;
@ApiModelProperty("三明钢铁浮动")
@TableField("FLUCTUATING_SS")
private Integer fluctuatingSs;
private Float fluctuatingSs;
@ApiModelProperty("福州公路局价格")
@TableField("PRICE_FHB")
private Integer priceFhb;
private Float priceFhb;
@ApiModelProperty("福州公路局浮动")
@TableField("FLUCTUATING_FHB")
private Integer fluctuatingFhb;
private Float fluctuatingFhb;
@ApiModelProperty("网络价格")
@TableField("PRICE_NETWORK")
private Integer priceNetwork;
private Float priceNetwork;
@ApiModelProperty("网络浮动")
@TableField("FLUCTUATING_NETWORK")
private Integer fluctuatingNetwork;
private Float fluctuatingNetwork;
@ApiModelProperty("调查价格")
@TableField("PRICE_SURVEY")
private Integer priceSurvey;
private Float priceSurvey;
@ApiModelProperty("调查浮动")
@TableField("FLUCTUATING_SURVEY")
private Integer fluctuatingSurvey;
private Float fluctuatingSurvey;
@ApiModelProperty("上月发布价格")
@TableField("PRICE_LAST_MONTH")
private Integer priceLastMonth;
private Float priceLastMonth;
@ApiModelProperty("计算价格")
@TableField("PRICE_CALCULATE")
private Integer priceCalculate;
private Float priceCalculate;
@ApiModelProperty("推荐价格")
@TableField("PRICE_RECOMMEND")
private Integer priceRecommend;
private Float priceRecommend;
@ApiModelProperty("推荐浮动")
@TableField("FLUCTUATING_RECOMMEND")
private Integer fluctuatingRecommend;
private Float fluctuatingRecommend;
@Override
public Serializable pkVal() {
@@ -146,20 +146,20 @@ public class PriceResult extends Model<PriceResult> {
}
public PriceResult update(PriceResultEditRequest item) {
this.setPriceFtb(item.getPriceFtb());
this.setFluctuatingFtb(item.getFluctuatingFtb());
this.setPriceSs(item.getPriceSs());
this.setFluctuatingSs(item.getFluctuatingSs());
this.setPriceFhb(item.getPriceFhb());
this.setFluctuatingFhb(item.getFluctuatingFhb());
this.setPriceNetwork(item.getPriceNetwork());
this.setFluctuatingNetwork(item.getFluctuatingNetwork());
this.setPriceSurvey(item.getPriceSurvey());
this.setFluctuatingSurvey(item.getFluctuatingSurvey());
this.setPriceLastMonth(item.getPriceLastMonth());
this.setPriceCalculate(item.getPriceCalculate());
this.setPriceRecommend(item.getPriceRecommend());
this.setFluctuatingRecommend(item.getFluctuatingRecommend());
this.setPriceFtb(item.getPriceFtb().floatValue());
this.setFluctuatingFtb(item.getFluctuatingFtb().floatValue());
this.setPriceSs(item.getPriceSs().floatValue());
this.setFluctuatingSs(item.getFluctuatingSs().floatValue());
this.setPriceFhb(item.getPriceFhb().floatValue());
this.setFluctuatingFhb(item.getFluctuatingFhb().floatValue());
this.setPriceNetwork(item.getPriceNetwork().floatValue());
this.setFluctuatingNetwork(item.getFluctuatingNetwork().floatValue());
this.setPriceSurvey(item.getPriceSurvey().floatValue());
this.setFluctuatingSurvey(item.getFluctuatingSurvey().floatValue());
this.setPriceLastMonth(item.getPriceLastMonth().floatValue());
this.setPriceCalculate(item.getPriceCalculate().floatValue());
this.setPriceRecommend(item.getPriceRecommend().floatValue());
this.setFluctuatingRecommend(item.getFluctuatingRecommend().floatValue());
return this;
}
}