Commit 6eccc8c7 by 朱海

[chg]发送数据增加参数过滤数量

1 parent 7d503500
...@@ -71,7 +71,8 @@ public class KeliuController { ...@@ -71,7 +71,8 @@ public class KeliuController {
@RequestParam(required = false, value = "deviceSerialNum") String deviceSerialNum, @RequestParam(required = false, value = "deviceSerialNum") String deviceSerialNum,
@RequestParam(required = false, value = "channelSerialNum") String channelSerialNum, @RequestParam(required = false, value = "channelSerialNum") String channelSerialNum,
@RequestParam(required = false, value = "startTime") Date startTime, @RequestParam(required = false, value = "startTime") Date startTime,
@RequestParam(required = false, value = "endTime") Date endTime @RequestParam(required = false, value = "endTime") Date endTime,
@RequestParam(required = false, value = "recordCount", defaultValue = "1") Integer recordCount
) { ) {
List<Future<JsonMessageUtil.JsonMessage>> responses = new LinkedList<>(); List<Future<JsonMessageUtil.JsonMessage>> responses = new LinkedList<>();
if (SEND_DATA) { if (SEND_DATA) {
...@@ -85,7 +86,7 @@ public class KeliuController { ...@@ -85,7 +86,7 @@ public class KeliuController {
Map<String, List<FaceRecognition>> faceRecognitionMap = faceRecognitions.stream().collect(Collectors.groupingBy(FaceRecognition::getPersonUnid)); Map<String, List<FaceRecognition>> faceRecognitionMap = faceRecognitions.stream().collect(Collectors.groupingBy(FaceRecognition::getPersonUnid));
List<FaceRecognition> faceRecognitionList = new ArrayList<>(); List<FaceRecognition> faceRecognitionList = new ArrayList<>();
faceRecognitionMap.forEach((k, v) -> { faceRecognitionMap.forEach((k, v) -> {
if (v.size() >= 8) { if (v.size() >= recordCount) {
faceRecognitionList.addAll(v); faceRecognitionList.addAll(v);
} }
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!