From 4b414aafbae9b6a9d4974c4c6dd39c4179dabac7 Mon Sep 17 00:00:00 2001 From: linrf Date: Fri, 1 Sep 2023 14:02:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/docus/server/service/impl/CommonService.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docus-segmentation/src/main/java/com/docus/server/service/impl/CommonService.java b/docus-segmentation/src/main/java/com/docus/server/service/impl/CommonService.java index 6094093..ca41cbd 100644 --- a/docus-segmentation/src/main/java/com/docus/server/service/impl/CommonService.java +++ b/docus-segmentation/src/main/java/com/docus/server/service/impl/CommonService.java @@ -44,11 +44,11 @@ public class CommonService { iOcrBasicTestService.saveOrUpdate(addOcrBasicDTO); - AddOcrFileInfoTestDTO addOcrFileInfoDTO = new AddOcrFileInfoTestDTO(); - List files = new ArrayList<>(); for (UploadFileVO uploadFileVO : segmentation) { + AddOcrFileInfoTestDTO addOcrFileInfoDTO = new AddOcrFileInfoTestDTO(); + addOcrFileInfoDTO.setPatientId(request.getPatientId()); addOcrFileInfoDTO.setFileTitle(uploadFileVO.getFileTitle()); addOcrFileInfoDTO.setPicName(uploadFileVO.getFileName()); @@ -78,11 +78,10 @@ public class CommonService { iOcrBasicService.saveOrUpdate(addOcrBasicDTO); - AddOcrFileInfoDTO addOcrFileInfoDTO = new AddOcrFileInfoDTO(); - List files = new ArrayList<>(); for (UploadFileVO uploadFileVO : segmentation) { + AddOcrFileInfoDTO addOcrFileInfoDTO = new AddOcrFileInfoDTO(); addOcrFileInfoDTO.setPatientId(request.getPatientId()); addOcrFileInfoDTO.setFileTitle(uploadFileVO.getFileTitle()); addOcrFileInfoDTO.setPicName(uploadFileVO.getFileName());