|
|
|
@ -15,6 +15,7 @@ import cn.jyjz.xiaoyao.ocr.dataDao.OcrSearchHistoryMapper;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <p>
|
|
|
|
@ -38,9 +39,12 @@ public class OcrSearchHistoryServiceImpl extends ServiceImpl<OcrSearchHistoryMap
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<Object, List<Map<String,String>>> selectsearch(String search, String assignee) {
|
|
|
|
|
List<Map<String,String>> strings1 = ocrsearchhistorymapper.selectsearch1(search);
|
|
|
|
|
List<Map<String,String>> strings2 = ocrsearchhistorymapper.selectsearch2(search);
|
|
|
|
|
List<Map<String,String>> strings3 = ocrsearchhistorymapper.selectsearch3(search);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Map<String,String>> strings1 = ocrsearchhistorymapper.selectsearch1(assignee,search);
|
|
|
|
|
List<Map<String,String>> strings2 = ocrsearchhistorymapper.selectsearch2(assignee,search);
|
|
|
|
|
List<Map<String,String>> strings3 = ocrsearchhistorymapper.selectsearch3(assignee,search);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// List<Map<Object,List<Map<String,String>>>> list = new ArrayList<>();
|
|
|
|
@ -119,6 +123,14 @@ public class OcrSearchHistoryServiceImpl extends ServiceImpl<OcrSearchHistoryMap
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// List<OcrPicture> collect = Arrays.stream(cps)
|
|
|
|
|
// .map(Long::parseLong)
|
|
|
|
|
// .map(childpictureid -> this.ocrPictureService.selectDtoById(childpictureid))
|
|
|
|
|
// .filter(ocrPicture->ocrPicture.getSimilarityscore() >= 90)
|
|
|
|
|
//
|
|
|
|
|
// .collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return this.ocrPictureService.updateBatchById(saveList) ? ResultVoUtil.success() : ResultVoUtil.error();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|