|
|
@ -113,9 +113,8 @@ public class OcrIdentifyController extends JeecgController<OcrIdentify, IOcrIden
|
|
|
|
Map<String, OcrMetadataConfigVo> metadataConfigMap = ocrMetadataConfigService.listToMap(null);
|
|
|
|
Map<String, OcrMetadataConfigVo> metadataConfigMap = ocrMetadataConfigService.listToMap(null);
|
|
|
|
Map<String, String> taskNameMap = ocrTaskTypeService.listNameToMap(null);
|
|
|
|
Map<String, String> taskNameMap = ocrTaskTypeService.listNameToMap(null);
|
|
|
|
IPage<OcrIdentify> pageList = ocrIdentifyService.page(page, queryWrapper);
|
|
|
|
IPage<OcrIdentify> pageList = ocrIdentifyService.page(page, queryWrapper);
|
|
|
|
if (pageList != null && pageList.getRecords() != null) {
|
|
|
|
if (pageList != null && pageList.getRecords() != null &&pageList.getRecords().size()>0) {
|
|
|
|
List<String> identifyIdList = pageList.getRecords().stream().map(p -> p.getId()).collect(Collectors.toList());
|
|
|
|
List<String> identifyIdList = pageList.getRecords().stream().map(p -> p.getId()).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
|
|
List<OcrIdentifyDetail> identifyDetailList = ocrIdentifyDetailService.list(new LambdaQueryWrapper<OcrIdentifyDetail>().in(OcrIdentifyDetail::getIdentifyId,identifyIdList));
|
|
|
|
List<OcrIdentifyDetail> identifyDetailList = ocrIdentifyDetailService.list(new LambdaQueryWrapper<OcrIdentifyDetail>().in(OcrIdentifyDetail::getIdentifyId,identifyIdList));
|
|
|
|
for (OcrIdentify record : pageList.getRecords()) {
|
|
|
|
for (OcrIdentify record : pageList.getRecords()) {
|
|
|
|
long count = identifyDetailList.stream().filter(i -> i.getIdentifyId().equals(record.getId())).count();
|
|
|
|
long count = identifyDetailList.stream().filter(i -> i.getIdentifyId().equals(record.getId())).count();
|
|
|
|