| | |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("涨跌幅Str") |
| | | private String changeRatioStr; |
| | | private BigDecimal changeRatioStr; |
| | | |
| | | /** |
| | | * 净值涨跌幅 |
| | |
| | | |
| | | } |
| | | |
| | | public BigDecimal getchangeRatioStr(){ |
| | | if(this.changeRatioStr == null || this.changeRatioStr.compareTo(BigDecimal.ZERO) == 0){ |
| | | return changeRatioStr; |
| | | }else { |
| | | return getChangeRatio(); |
| | | } |
| | | |
| | | } |
| | | |
| | | public BigDecimal getNetChange() { |
| | | BigDecimal netChange = close.multiply(getChangeRatio()).divide(new BigDecimal(100), 10, RoundingMode.HALF_UP); |
| | | netChange = netChange.setScale(4, RoundingMode.DOWN); |