From 083e4c637675217c1d73a40b735bbefb7aa88311 Mon Sep 17 00:00:00 2001 From: yjz <3131811435@qq.com> Date: Thu, 8 Aug 2024 14:51:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(88270):=20=E6=8B=86=E5=88=86=E5=94=AF?= =?UTF-8?q?=E4=B8=80=E6=A0=A1=E9=AA=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DocumentSplitServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java index 534bd86a..03111d4d 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java @@ -1485,8 +1485,11 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { DocumentSplitInfo documentSplitInfo = new DocumentSplitInfo(); documentSplitInfo.setSerialNumber(sarFileSplitInfoEO.getSerialNumber()); documentSplitInfo.setFileType(sarFileSplitInfoEO.getFileType()); - List list = queryByList(documentSplitInfo); - if(!list.isEmpty()){ + int count = sarFileSplitInfoService.count( + new LambdaQueryWrapper() + .eq(SarFileSplitInfoEO::getSerialNumber, sarFileSplitInfoEO.getSerialNumber()) + .eq(SarFileSplitInfoEO::getFileType, sarFileSplitInfoEO.getFileType())); + if(count > 0){ if(LanguageEnum.CN.equals(MessageUtils.getLanguage())) { throw new JeroBootException("每个文件类型只能拆分一次!"); }else{