|
|
@@ -292,6 +292,10 @@ public class OtcTradeOrderController {
|
|
|
List<VoyageRespVO> voyageRespVOList = BeanUtils.toBean(voyageList, VoyageRespVO.class);
|
|
|
Map<Long, VoyageRespVO> voyageRespVoMap = CollectionUtils.convertMap(voyageRespVOList, VoyageRespVO::getId);
|
|
|
|
|
|
+ // 拼房数量
|
|
|
+ List<OrderShareVO> orderShareVOS = tradeOrderRoomModelService.getOrderShareStatsByOrderIds(orderIds);
|
|
|
+ Map<Long, List<OrderShareVO>> orderShareMap = CollectionUtils.convertMultiMap(orderShareVOS, OrderShareVO::getOrderId);
|
|
|
+
|
|
|
if (!list.isEmpty()) {
|
|
|
list.forEach(item -> {
|
|
|
MapUtils.findAndThen(shipMap, item.getShipId(), ship -> item.setShipName(ship.getName()));
|
|
|
@@ -314,6 +318,10 @@ public class OtcTradeOrderController {
|
|
|
roomDesc.forEach((key, value) -> roomDescStr.set(roomDescStr.get() + " " + value.size() + "*" + key));
|
|
|
item.setRoomModelDetails(roomDescStr.get().trim());
|
|
|
}
|
|
|
+ MapUtils.findAndThen(orderShareMap, item.getId(), orderShareList -> {
|
|
|
+ String shareDesc = orderShareList.stream().map(orderShare -> orderShare.getNum() + "" + orderShare.getGender()).collect(Collectors.joining());
|
|
|
+ item.setShareDesc(shareDesc);
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
return success(page);
|