|
@@ -235,29 +235,19 @@ public class AppCameraController extends AppBaseController {
|
|
AjaxResult result = remoteSystemBaseService.getSortByType(dictType);
|
|
AjaxResult result = remoteSystemBaseService.getSortByType(dictType);
|
|
List<Map<String, Object>> data = (List<Map<String, Object>>) result.get("data");
|
|
List<Map<String, Object>> data = (List<Map<String, Object>>) result.get("data");
|
|
List<Map<String, Object>> cameraUse = (List<Map<String, Object>>) remoteSystemBaseService.getSortByType("camera_use").get("data");
|
|
List<Map<String, Object>> cameraUse = (List<Map<String, Object>>) remoteSystemBaseService.getSortByType("camera_use").get("data");
|
|
- data.addAll(screenSort(cameraUse, 1));
|
|
|
|
|
|
+ data.addAll(screenSort(cameraUse));
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
-// else if ("camera_use".equals(dictType)) {
|
|
|
|
-// AjaxResult sortByType = remoteSystemBaseService.getSortByType(dictType);
|
|
|
|
-// List<Map<String, Object>> data = (List<Map<String, Object>>) sortByType.get("data");
|
|
|
|
-// sortByType.put("data", screenSort(data, 0));
|
|
|
|
-// return sortByType;
|
|
|
|
-// }
|
|
|
|
else {
|
|
else {
|
|
return remoteSystemBaseService.getSortByType(dictType);
|
|
return remoteSystemBaseService.getSortByType(dictType);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public List<Map<String, Object>> screenSort(List<Map<String, Object>> data, int index) {
|
|
|
|
|
|
+ public List<Map<String, Object>> screenSort(List<Map<String, Object>> data) {
|
|
List<Map<String, Object>> result = data.stream()
|
|
List<Map<String, Object>> result = data.stream()
|
|
.filter(datum -> {
|
|
.filter(datum -> {
|
|
String dictValue = datum.get("dictValue").toString();
|
|
String dictValue = datum.get("dictValue").toString();
|
|
- if (index > 0) {
|
|
|
|
- return !Arrays.asList("4", "5", "2").contains(dictValue);
|
|
|
|
- } else {
|
|
|
|
- return !Arrays.asList("4", "5").contains(dictValue);
|
|
|
|
- }
|
|
|
|
|
|
+ return !Arrays.asList("2").contains(dictValue);
|
|
})
|
|
})
|
|
.collect(Collectors.toList());
|
|
.collect(Collectors.toList());
|
|
return result;
|
|
return result;
|