|
@@ -88,14 +88,15 @@ public class HxpCabinetServiceImpl implements IHxpCabinetService {
|
|
|
R <List <LinkedHashMap <String, String>>> cabinetLockList = remoteLaboratoryService.getHardwareByLockList(allMap);
|
|
R <List <LinkedHashMap <String, String>>> cabinetLockList = remoteLaboratoryService.getHardwareByLockList(allMap);
|
|
|
Predicate <R <List <LinkedHashMap <String, String>>>> predicate = b -> b.getData() != null && b.getData().size() > 0;
|
|
Predicate <R <List <LinkedHashMap <String, String>>>> predicate = b -> b.getData() != null && b.getData().size() > 0;
|
|
|
if (predicate.test(cabinetLockList)) {
|
|
if (predicate.test(cabinetLockList)) {
|
|
|
- List <HxpCabinetVo> cabinetVoList = Optional.ofNullable(hxpCabinetVos).orElseGet(Collections::emptyList).parallelStream()
|
|
|
|
|
- .map(a -> {
|
|
|
|
|
|
|
+ Optional.ofNullable(hxpCabinetVos).orElseGet(Collections::emptyList).parallelStream()
|
|
|
|
|
+ .forEach(a -> {
|
|
|
Optional.ofNullable(cabinetLockList.getData()).orElseGet(Collections::emptyList)
|
|
Optional.ofNullable(cabinetLockList.getData()).orElseGet(Collections::emptyList)
|
|
|
.stream().filter(b -> b.get("joinCabinetId").equals(a.getId() + "")).forEach(b -> a.getCabinetLockList().add(b));
|
|
.stream().filter(b -> b.get("joinCabinetId").equals(a.getId() + "")).forEach(b -> a.getCabinetLockList().add(b));
|
|
|
- return a;
|
|
|
|
|
- }
|
|
|
|
|
- ).sorted(Comparator.comparing(HxpCabinetVo::getCreateTime).reversed()).collect(Collectors.toList());
|
|
|
|
|
- return cabinetVoList;
|
|
|
|
|
|
|
+// return a;
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+// ).sorted(Comparator.comparing(HxpCabinetVo::getCreateTime).reversed()).collect(Collectors.toList());
|
|
|
|
|
+ return hxpCabinetVos;
|
|
|
}
|
|
}
|
|
|
return hxpCabinetVos;
|
|
return hxpCabinetVos;
|
|
|
}
|
|
}
|