|
|
@ -1090,14 +1090,9 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
responseBody.put("dataStructuredTime",dataStructuredTime);
|
|
|
|
responseBody.put("dataStructuredTime",dataStructuredTime);
|
|
|
|
responseBody.put("allExecutionTime",executionTime);
|
|
|
|
responseBody.put("allExecutionTime",executionTime);
|
|
|
|
|
|
|
|
|
|
|
|
//排序
|
|
|
|
//=========排序
|
|
|
|
Comparator<Object> english= Collator.getInstance(Locale.ENGLISH);
|
|
|
|
ocrResultDTOList.sort((h1, h2) -> h1.getTag().compareTo(h2.getTag()));
|
|
|
|
Collections.sort(ocrResultDTOList,(o1,o2)->{
|
|
|
|
//============
|
|
|
|
if(english.compare(o1.getTag(),o2.getTag())==0){
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
responseBody.put("detailList", ocrResultDTOList);
|
|
|
|
responseBody.put("detailList", ocrResultDTOList);
|
|
|
|
if (ocrResultDTOList.size()==0) {
|
|
|
|
if (ocrResultDTOList.size()==0) {
|
|
|
|
//没有匹配结果
|
|
|
|
//没有匹配结果
|
|
|
|