master
周文涛 2 years ago
parent 7b7f6fc97a
commit 814a344891

@ -233,7 +233,7 @@ public class ApiController {
File thumbnailFile = new File(outputImagePath);
//如果上次生成过缩率图,就不生成了
if (!thumbnailFile.exists()) {
ImageUtils.compressImage(file.getAbsolutePath(), outputImagePath, maxWidth, maxHeight);
ImageUtils.compressImage(file.getAbsolutePath(), outputImagePath,0.5f, 0.5f);
}
ocrIdentifyDetail.setThumbnailImageUrl(outputImagePath);
}
@ -242,9 +242,12 @@ public class ApiController {
ocrIdentifyDetailService.updateBatchById(list1);
}
//ocrIdentifyService.updateBatchById(list);
/*List<OcrIdentify> list = ocrIdentifyService.list(new LambdaQueryWrapper<OcrIdentify>().eq(OcrIdentify::getStatus,"1"));*/
/*for (OcrIdentify ocrIdentify : list) {
/*List<OcrIdentify> list = ocrIdentifyService.list(new LambdaQueryWrapper<OcrIdentify>().eq(OcrIdentify::getStatus,"1"));
int i =0;
for (OcrIdentify ocrIdentify : list) {
ocrIdentifyService.updateTaskResultInfo(ocrIdentify.getId());
i++;
System.out.println(i);
}*/
/*List<OcrIdentify> list = ocrIdentifyService.list(new LambdaQueryWrapper<OcrIdentify>().in(OcrIdentify::getStatus, "0","2"));

Loading…
Cancel
Save