Commit 0b605ffc by zhengxj

finish 完善距离计算 on 20191118 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24918 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 142e467b
...@@ -3811,7 +3811,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -3811,7 +3811,7 @@ public class OrderServiceImpl implements IOrderService {
break; break;
default: default:
list = list.stream().sorted(Comparator.comparing(MechanicBusiness::getDistance, list = list.stream().sorted(Comparator.comparing(MechanicBusiness::getDistance,
Comparator.nullsFirst(Integer::compareTo))).collect(Collectors.toList()); Comparator.nullsLast(Integer::compareTo))).collect(Collectors.toList());
break; break;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!