Commit 88b344ee by wangli

修复错误:工程师可能没有任何指派订单导致查询错误

1 parent c22ac384
......@@ -64,9 +64,13 @@ public class OrderAssignImpl implements OrderAssign {
continue;
}
// 获取订单tips
HashMap<String, List<LabelValueDTO>> orderTips = new HashMap<>();
List<String> orderIds = orderAppointments.stream().map(OrderAppointment::getOrderId).collect(Collectors.toList());
List<OrderRequest> orders = this.queryOrderRequestsByOrderIds(orderIds);
HashMap<String, List<LabelValueDTO>> orderTips = this.packOrderTips(orders);
if(!orderIds.isEmpty()) {
List<OrderRequest> orders = this.queryOrderRequestsByOrderIds(orderIds);
orderTips = this.packOrderTips(orders);
}
OrderAssignRecommendResp.Engineer item = new OrderAssignRecommendResp.Engineer();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!