fix 分转元转换问题

This commit is contained in:
bootx
2024-05-25 17:21:24 +08:00
parent 75aa84754a
commit d6b1c8cd54
2 changed files with 1 additions and 3 deletions

View File

@@ -34,14 +34,12 @@ public class PayOrderModel extends DaxPayResponseModel {
/** 描述 */
private String description;
/** 是否支持分账 */
private Boolean allocation;
/** 是否开启自动分账, 不传输为不开启 */
private Boolean autoAllocation;
/**
* 支付通道
* @see PayChannelEnum

View File

@@ -82,6 +82,6 @@ public class PayUtil {
* @return 元的金额 两位小数
*/
public static BigDecimal conversionAmount(int amount) {
return BigDecimal.valueOf(amount).setScale(2, RoundingMode.HALF_UP);
return BigDecimal.valueOf(amount).divide(HUNDRED,2, RoundingMode.HALF_UP);
}
}