| | |
| | | if (value == null) {
|
| | | return new JsonPrimitive("0.00");
|
| | | } else {
|
| | | // 保留2位小数
|
| | | value = value.setScale(2,RoundingMode.DOWN);
|
| | | // 保留3位小数
|
| | | value = value.setScale(3,RoundingMode.DOWN);
|
| | | return new JsonPrimitive(value.toString());
|
| | | }
|
| | | }
|
| | |
| | | teamDividentsVO.setSubsidy(BigDecimal.ZERO);
|
| | | teamDividentsVO.setDividents(BigDecimal.ZERO);
|
| | | }
|
| | | object.put("subsidy", teamDividentsVO.getSubsidy().setScale(3).toString());
|
| | | object.put("dividents", teamDividentsVO.getDividents().setScale(3).toString());
|
| | | object.put("subsidy", teamDividentsVO.getSubsidy().setScale(2,RoundingMode.DOWN).toString());
|
| | | object.put("dividents", teamDividentsVO.getDividents().setScale(2, RoundingMode.DOWN).toString());
|
| | | }
|
| | | |
| | |
|
| | | object.put("count", count);
|
| | | object.put("list", gson.toJson(list));
|