Commit 7dff9fe19d3fe4575653ec3856e5566fceedbda4
1 parent
f2619bc3
update...
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/bsth/server_ws/util/ScheduleCalculator.java
| @@ -121,7 +121,7 @@ public class ScheduleCalculator { | @@ -121,7 +121,7 @@ public class ScheduleCalculator { | ||
| 121 | //有子任务 | 121 | //有子任务 |
| 122 | if (cts != null && cts.size() > 0) { | 122 | if (cts != null && cts.size() > 0) { |
| 123 | for (ChildTaskPlan ct : cts) { | 123 | for (ChildTaskPlan ct : cts) { |
| 124 | - if (!isInOut(ct)) | 124 | + if (!isInOut(ct) && !ct.isDestroy()) |
| 125 | sum = Arith.add(sum, ct.getMileage()); | 125 | sum = Arith.add(sum, ct.getMileage()); |
| 126 | } | 126 | } |
| 127 | } else | 127 | } else |