Commit 3d6ba3d3 by ping.wu

售后订单取最新售后数据

parent d08dd5fa
...@@ -74,7 +74,9 @@ public class OrderCenterSdkAdapter { ...@@ -74,7 +74,9 @@ public class OrderCenterSdkAdapter {
} }
if (orderInfoReqs.getAfterSalesOrderList() != null && orderInfoReqs.getAfterSalesOrderList().size() >= 1) { if (orderInfoReqs.getAfterSalesOrderList() != null && orderInfoReqs.getAfterSalesOrderList().size() >= 1) {
data.setAfterSalesOrderResp(orderInfoReqs.getAfterSalesOrderList().get(0)); //取最新售后单
List<AfterSalesOrderResp> afterSalesOrderList = orderInfoReqs.getAfterSalesOrderList().stream().sorted(Comparator.comparing(AfterSalesOrderResp::getCreateTime).reversed()).collect(Collectors.toList());
data.setAfterSalesOrderResp(afterSalesOrderList.get(0));
} }
if (orderInfoReqs.getDeliveryContactInfoList() != null && orderInfoReqs.getDeliveryContactInfoList().size() != 0) { if (orderInfoReqs.getDeliveryContactInfoList() != null && orderInfoReqs.getDeliveryContactInfoList().size() != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment