|
|
|
@ -115,7 +115,8 @@ public class OcrIdentifyController extends JeecgController<OcrIdentify, IOcrIden
|
|
|
|
|
IPage<OcrIdentify> pageList = ocrIdentifyService.page(page, queryWrapper);
|
|
|
|
|
if (pageList != null && pageList.getRecords() != null) {
|
|
|
|
|
List<String> identifyIdList = pageList.getRecords().stream().map(p -> p.getId()).collect(Collectors.toList());
|
|
|
|
|
List<OcrIdentifyDetail> identifyDetailList = ocrIdentifyDetailService.list(new LambdaQueryWrapper<OcrIdentifyDetail>().in(OcrIdentifyDetail::getIdentifyId));
|
|
|
|
|
|
|
|
|
|
List<OcrIdentifyDetail> identifyDetailList = ocrIdentifyDetailService.list(new LambdaQueryWrapper<OcrIdentifyDetail>().in(OcrIdentifyDetail::getIdentifyId,identifyIdList));
|
|
|
|
|
for (OcrIdentify record : pageList.getRecords()) {
|
|
|
|
|
long count = identifyDetailList.stream().filter(i -> i.getIdentifyId().equals(record.getId())).count();
|
|
|
|
|
record.setImgNum(count);
|
|
|
|
|