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