Commit 0638281b by 刘鑫

fix: java.lang.ArithmeticException: / by zero

1 parent 998ac96c
...@@ -131,7 +131,7 @@ public class ScheduleServiceImpl implements ScheduleService { ...@@ -131,7 +131,7 @@ public class ScheduleServiceImpl implements ScheduleService {
team.setChildren(children); team.setChildren(children);
team.setOrderDesc(String.format("人均:%d", orders.size() / teamEngineers.size())); team.setOrderDesc(String.format("人均:%d", teamEngineers.size() > 0 ? (orders.size() / teamEngineers.size()) : 0));
team.setDistanceDesc(""); team.setDistanceDesc("");
teams.add(team); teams.add(team);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!