|
|
@@ -1240,6 +1240,9 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
|
|
|
BigDecimal single = totalOrderMoney.divide(BigDecimal.valueOf(totalDays), 0, RoundingMode.HALF_UP);
|
|
|
//该车票抵扣金额
|
|
|
BigDecimal deductMoney = single.multiply(BigDecimal.valueOf(thisDeductBetweenDay));
|
|
|
+ if (deductMoney.compareTo(totalOrderMoney) > 0) {
|
|
|
+ deductMoney = totalOrderMoney;
|
|
|
+ }
|
|
|
return deductMoney;
|
|
|
}
|
|
|
}
|