src/main/java/com/boying/service/impl/CostRuleServiceImpl.java
@@ -152,10 +152,10 @@ //全部处于第二时间段 double v = money3(costRule,endTime.getTime() - startTime.getTime(),costRule.getCost2(),costRule.getMaxCost2())+sum; if(dynum == 0){ if((v + 2.5) <costRule.getMaxCost1()){ if((v + 2.5) <costRule.getMaxCost2()){ return v + 2.5; }else { return costRule.getMaxCost1(); return costRule.getMaxCost2(); } }else { return v; @@ -513,6 +513,6 @@ public static void main(String[] args) { System.out.println(((30*1.0)/30)>(30/30)); // System.out.println(((30*1.0)/30)>(30/30)); } }