|
@@ -773,6 +773,9 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
|
|
|
|
|
if (price.compareTo(BigDecimal.ZERO) == 0){
|
|
if (price.compareTo(BigDecimal.ZERO) == 0){
|
|
|
price = sku.getPrice().multiply(payRequest.getRate());
|
|
price = sku.getPrice().multiply(payRequest.getRate());
|
|
|
|
|
+ if ("TWD".equals(payRequest.getCurrency())){
|
|
|
|
|
+ price = price.setScale(-2, RoundingMode.HALF_UP);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* 生成订单 */
|
|
/* 生成订单 */
|