Commit 3c5e8400 by wangli

修改,避免label的value为null情况

1 parent 88b344ee
......@@ -67,7 +67,7 @@ public class OrderAssignImpl implements OrderAssign {
// 获取订单tips
HashMap<String, List<LabelValueDTO>> orderTips = new HashMap<>();
List<String> orderIds = orderAppointments.stream().map(OrderAppointment::getOrderId).collect(Collectors.toList());
if(!orderIds.isEmpty()) {
if (!orderIds.isEmpty()) {
List<OrderRequest> orders = this.queryOrderRequestsByOrderIds(orderIds);
orderTips = this.packOrderTips(orders);
}
......@@ -221,7 +221,7 @@ public class OrderAssignImpl implements OrderAssign {
private LabelValueDTO packLabelValue(String label, String value) {
LabelValueDTO item = new LabelValueDTO();
item.setLabel(label);
item.setValue(value);
item.setValue((value == null) ? "" : value);
return item;
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!