提交 27df49ec authored 作者: zhoushaopan's avatar zhoushaopan

[装备controller]新增检查装备按照名称排序

上级 763f185a
...@@ -151,7 +151,7 @@ public class DeviceLibraryController { ...@@ -151,7 +151,7 @@ public class DeviceLibraryController {
deviceLibraries.removeAll(deviceLibraryEntities); deviceLibraries.removeAll(deviceLibraryEntities);
Map<String,Object> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();
//在库排序 //在库排序
List<DeviceLibrary> stockDevices = deviceLibraries.stream().sorted(Comparator.comparing(DeviceLibrary::getModel)).collect(Collectors.toList()); List<DeviceLibrary> stockDevices = deviceLibraryEntities.stream().sorted(Comparator.comparing(DeviceLibrary::getModel)).collect(Collectors.toList());
// map.put("stockDevices",deviceLibraryEntities); // map.put("stockDevices",deviceLibraryEntities);
map.put("stockDevices",stockDevices); map.put("stockDevices",stockDevices);
//不在库排序 //不在库排序
...@@ -176,7 +176,7 @@ public class DeviceLibraryController { ...@@ -176,7 +176,7 @@ public class DeviceLibraryController {
// map.put("stockDevices",deviceLibraryEntities); // map.put("stockDevices",deviceLibraryEntities);
// map.put("notInStockDevices",deviceLibraries); // map.put("notInStockDevices",deviceLibraries);
//在库排序 //在库排序
List<DeviceLibrary> stockDevices = deviceLibraries.stream().sorted(Comparator.comparing(DeviceLibrary::getModel)).collect(Collectors.toList()); List<DeviceLibrary> stockDevices = deviceLibraryEntities.stream().sorted(Comparator.comparing(DeviceLibrary::getModel)).collect(Collectors.toList());
// map.put("stockDevices",deviceLibraryEntities); // map.put("stockDevices",deviceLibraryEntities);
map.put("stockDevices",stockDevices); map.put("stockDevices",stockDevices);
//不在库排序 //不在库排序
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论