From feb7b490c93e266773c1988424e6ba0b16638a5d Mon Sep 17 00:00:00 2001 From: guojunyun Date: Wed, 19 Nov 2025 17:26:09 +0800 Subject: [PATCH] =?UTF-8?q?SZHGYL-289=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/contract/ContractServiceImpl.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/zt-module-contract-order/zt-module-contract-order-server/src/main/java/com/zt/plat/module/contractorder/service/contract/ContractServiceImpl.java b/zt-module-contract-order/zt-module-contract-order-server/src/main/java/com/zt/plat/module/contractorder/service/contract/ContractServiceImpl.java index 47fcd089..0afb1dfd 100644 --- a/zt-module-contract-order/zt-module-contract-order-server/src/main/java/com/zt/plat/module/contractorder/service/contract/ContractServiceImpl.java +++ b/zt-module-contract-order/zt-module-contract-order-server/src/main/java/com/zt/plat/module/contractorder/service/contract/ContractServiceImpl.java @@ -1193,6 +1193,11 @@ public class ContractServiceImpl implements ContractService { contractIds = getContractIds(queryReqVO.getContractName(), queryReqVO.getContractPaperNumber()); } + // 未查询到相关合同 + if (CollectionUtils.isEmpty(contractIds)) { + return new PageResult<>(); + } + // 分页查询 IPage ipage = contractNotMapper.selectNots( new Page().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()), @@ -1215,6 +1220,11 @@ public class ContractServiceImpl implements ContractService { contractIds = getContractIds(queryReqVO.getContractName(), queryReqVO.getContractPaperNumber()); } + // 未查询到相关合同 + if (CollectionUtils.isEmpty(contractIds)) { + return new PageResult<>(); + } + // 分页查询 IPage ipage = contractDemoteMapper.selectDemotes( new Page<>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()), @@ -1237,6 +1247,11 @@ public class ContractServiceImpl implements ContractService { contractIds = getContractIds(queryReqVO.getContractName(), queryReqVO.getContractPaperNumber()); } + // 未查询到相关合同 + if (CollectionUtils.isEmpty(contractIds)) { + return new PageResult<>(); + } + // 分页查询 IPage ipage = contractFormulaMapper.selectFormulas( new Page<>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()),