后台将String类型的金额转换成有两位小数的格式:

public static String formatMoney(String str) {
        return new DecimalFormat("###0.00").format(Double.parseDouble(str));
    }

 lombok:

http://www.blogjava.net/fancydeepin/archive/2012/07/12/lombok.html

相关文章:

  • 2021-08-08
  • 2021-05-19
  • 2021-07-07
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2021-12-30
  • 2021-12-03
  • 2021-11-28
  • 2021-12-26
相关资源
相似解决方案