//BigDecimal 去掉结尾的0
@Test public void DecimalTest(){ String test1 = BigDecimal.valueOf(45.00).stripTrailingZeros().toPlainString(); assert "45".equals(test1) : "失败"; }
Java 时间处理 https://github.com/JodaOrg/joda-time
java排序
List.stream().sorted(Comparator.comparing(Model::getItem).reversed())
.collect(Collectors.toList());