Commit 0062dd1f by 李乾广

[add]过滤低质和回收的图片

1 parent 484bcd36
......@@ -590,7 +590,9 @@ public class ReidService {
}
SubTaskExample subTaskExample = new SubTaskExample();
subTaskExample.createCriteria().andPersonUnidIn(personUnidList).andPackIdEqualTo(packId);
//跳过低质/回收图片
List<Integer> excludeStatus = Arrays.asList(SubTaskStatus.LOW_QUALITY.val, SubTaskStatus.recycled.val);
subTaskExample.createCriteria().andPersonUnidIn(personUnidList).andPackIdEqualTo(packId).andStatusNotIn(excludeStatus);
subTasks = subTaskService.selectByExample(subTaskExample);
final Set<String> matchFilter = currentPerson == null ? Collections.emptySet() : getMatchFilter(currentPerson, packId);
......@@ -620,10 +622,6 @@ public class ReidService {
for (Map.Entry<String, List<SubTask>> entry : collect.entrySet()) {
SubTask pic = entry.getValue().get(0);
//跳过低质图片
if (pic.getStatus() == SubTaskStatus.LOW_QUALITY.val) {
continue;
}
if (pic.getStatus() == SubTaskStatus.FINISH_LABELING.val && entry.getValue().size() > 3) {
entry.setValue(entry.getValue().subList(0, 3));
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!