mirror of
https://gitee.com/dromara/dax-pay
synced 2026-08-10 06:46:04 +08:00
fix 分转元转换问题
This commit is contained in:
@@ -34,14 +34,12 @@ public class PayOrderModel extends DaxPayResponseModel {
|
||||
/** 描述 */
|
||||
private String description;
|
||||
|
||||
|
||||
/** 是否支持分账 */
|
||||
private Boolean allocation;
|
||||
|
||||
/** 是否开启自动分账, 不传输为不开启 */
|
||||
private Boolean autoAllocation;
|
||||
|
||||
|
||||
/**
|
||||
* 支付通道
|
||||
* @see PayChannelEnum
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user