|
|
@ -155,6 +155,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//把list中所有的senderName去重放入一个Set集合
|
|
|
|
//把list中所有的senderName去重放入一个Set集合
|
|
|
|
|
|
|
|
Set<String> senderFactorySet = list.stream().filter(e -> StringUtil.isNotBlank(e.getSenderFactory())).map(TrunklineAdvanceEntity::getSenderFactory).collect(Collectors.toSet()); |
|
|
|
Set<String> senderNameSet = list.stream().filter(e -> StringUtil.isNotBlank(e.getSenderName())).map(TrunklineAdvanceEntity::getSenderName).collect(Collectors.toSet()); |
|
|
|
Set<String> senderNameSet = list.stream().filter(e -> StringUtil.isNotBlank(e.getSenderName())).map(TrunklineAdvanceEntity::getSenderName).collect(Collectors.toSet()); |
|
|
|
Set<String> senderPhoneSet = list.stream().filter(e -> StringUtil.isNotBlank(e.getSenderPhone())).map(TrunklineAdvanceEntity::getSenderPhone).collect(Collectors.toSet()); |
|
|
|
Set<String> senderPhoneSet = list.stream().filter(e -> StringUtil.isNotBlank(e.getSenderPhone())).map(TrunklineAdvanceEntity::getSenderPhone).collect(Collectors.toSet()); |
|
|
|
Set<String> senderAddressSet = list.stream().filter(e -> StringUtil.isNotBlank(e.getSenderAddress())).map(TrunklineAdvanceEntity::getSenderAddress).collect(Collectors.toSet()); |
|
|
|
Set<String> senderAddressSet = list.stream().filter(e -> StringUtil.isNotBlank(e.getSenderAddress())).map(TrunklineAdvanceEntity::getSenderAddress).collect(Collectors.toSet()); |
|
|
@ -202,6 +203,19 @@ public class OpenOrderServiceImpl implements IOpenOrderService { |
|
|
|
openOrderVO.setDepartureArray(departureArray); |
|
|
|
openOrderVO.setDepartureArray(departureArray); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(senderFactorySet) && senderFactorySet.size() == 1){ |
|
|
|
|
|
|
|
openOrderVO.setShipper(senderFactorySet.iterator().next()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(senderNameSet) && senderNameSet.size() == 1){ |
|
|
|
|
|
|
|
openOrderVO.setShipperName(senderNameSet.iterator().next()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(senderPhoneSet) && senderPhoneSet.size() == 1){ |
|
|
|
|
|
|
|
openOrderVO.setShipperMobile(senderPhoneSet.iterator().next()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(senderAddressSet) && senderAddressSet.size() == 1){ |
|
|
|
|
|
|
|
openOrderVO.setShipperAddress(senderAddressSet.iterator().next()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|