|
|
@ -204,7 +204,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else if (Arrays.asList("日期", "时间").contains(s)) {
|
|
|
|
}else if (Arrays.asList("日期", "时间").contains(s)) {
|
|
|
|
for (String s1 : Arrays.asList("日期", "时间")) {
|
|
|
|
for (String s1 : Arrays.asList("日期", "时间")) {
|
|
|
|
JSONArray semantic_result = semanticResult.getJSONObject("semantic_result").getJSONArray(s1);
|
|
|
|
JSONArray semantic_result = semanticResult.getJSONArray(s1);
|
|
|
|
if (CollectionUtils.isNotEmpty(semantic_result)) {
|
|
|
|
if (CollectionUtils.isNotEmpty(semantic_result)) {
|
|
|
|
jsonArray.addAll(semantic_result);
|
|
|
|
jsonArray.addAll(semantic_result);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|