zoujiajian vor 10 Monaten
Ursprung
Commit
9d4165f2e7

+ 4 - 0
netflix-service/src/main/java/com/cyksj/service/claude/impl/ClaudeCodeServiceImpl.java

@@ -1244,6 +1244,10 @@ public class ClaudeCodeServiceImpl implements ClaudeCodeService {
 				}
 			}
 		}
+		//总天数为0 不抵扣
+		if (totalDays == 0) {
+			return BigDecimal.ZERO;
+		}
 		Long thisDeductBetweenDay = DateUtil.betweenDay(now, relationExpiryTime, false) + 1;
 		BigDecimal single = totalOrderMoney.divide(BigDecimal.valueOf(totalDays), 0, RoundingMode.HALF_UP);
 		//该车票抵扣金额