mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 海南平台对接
This commit is contained in:
@@ -44,7 +44,7 @@ public class AdapayUtil {
|
||||
* @return
|
||||
*/
|
||||
public static String formatAmount(BigDecimal amount, int n) {
|
||||
//保留2位小数
|
||||
//保留n位小数 没有四舍五入
|
||||
double d = amount.setScale(n, RoundingMode.DOWN).doubleValue();
|
||||
//不足则补0
|
||||
StringBuilder pattern = new StringBuilder("0");
|
||||
|
||||
Reference in New Issue
Block a user