Commit 6a84d4ab by wangli

修改null pointer

1 parent 75869e5c
......@@ -120,9 +120,12 @@ public class DispatchServiceImpl implements DispatchService {
List<DispatchEngineerOrderListResp.EngineerInfo> egs = new ArrayList<>();
for (EngineerInfo e : engineers) {
// 获取技术员指派单的订单列表
List<DispatchEngineerOrderListResp.OrderInfo> items = new ArrayList<>();
for (OrderAppointment r : engineerOrders.get(e.getEngineerCode())) {
// 技术员已指派的订单列表
List<OrderAppointment> records = engineerOrders.getOrDefault(e.getEngineerCode(), List.of());
// 获取技术员指派单的订单列表
for (OrderAppointment r : records) {
DispatchEngineerOrderListResp.OrderInfo item = new DispatchEngineerOrderListResp.OrderInfo();
// 获取订单信息
OrderRequest o = orders.get(r.getEngineerCode()).get(0);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!