diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java index b762262..0513154 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/api/controller/ApiController.java @@ -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 list = ocrIdentifyService.list(new LambdaQueryWrapper().eq(OcrIdentify::getStatus,"1"));*/ - /*for (OcrIdentify ocrIdentify : list) { + /*List list = ocrIdentifyService.list(new LambdaQueryWrapper().eq(OcrIdentify::getStatus,"1")); + int i =0; + for (OcrIdentify ocrIdentify : list) { ocrIdentifyService.updateTaskResultInfo(ocrIdentify.getId()); + i++; + System.out.println(i); }*/ /*List list = ocrIdentifyService.list(new LambdaQueryWrapper().in(OcrIdentify::getStatus, "0","2"));