From a3639a265e01ce55fb763a542e721366bdbd1fc2 Mon Sep 17 00:00:00 2001 From: jiayang yue Date: Tue, 29 Jul 2025 13:54:14 +0800 Subject: [PATCH] 2025.06.16 --- .../Impl/ProofingInformationServiceImpl.java | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/xujie/sys/modules/pms/service/Impl/ProofingInformationServiceImpl.java b/src/main/java/com/xujie/sys/modules/pms/service/Impl/ProofingInformationServiceImpl.java index 3b59c5b6..7d5b73ec 100644 --- a/src/main/java/com/xujie/sys/modules/pms/service/Impl/ProofingInformationServiceImpl.java +++ b/src/main/java/com/xujie/sys/modules/pms/service/Impl/ProofingInformationServiceImpl.java @@ -117,20 +117,21 @@ public class ProofingInformationServiceImpl implements ProofingInformationServic deleteSuccessful = false; throw new RuntimeException("编辑打样文档失败:" + e.getMessage(), e); } - } - // 插入操作 - try { - List proofingInformationDataList = proofingInformationMapper.getDocumentTypeIds(data); - if (proofingInformationDataList != null && !proofingInformationDataList.isEmpty()) { - for (ProofingInformationData inData : proofingInformationDataList) { - if (!proofingInformationMapper.documentExists(data, inData.getDocumentTypeId())) { - proofingInformationMapper.insertDocument(data, inData.getDocumentTypeId()); + + // 插入操作 + try { + List proofingInformationDataList = proofingInformationMapper.getDocumentTypeIds(data); + if (proofingInformationDataList != null && !proofingInformationDataList.isEmpty()) { + for (ProofingInformationData inData : proofingInformationDataList) { + if (!proofingInformationMapper.documentExists(data, inData.getDocumentTypeId())) { + proofingInformationMapper.insertDocument(data, inData.getDocumentTypeId()); + } } } + } catch (Exception e) { + deleteSuccessful = false; + throw new RuntimeException("插入文档失败:" + e.getMessage(), e); } - } catch (Exception e) { - deleteSuccessful = false; - throw new RuntimeException("插入文档失败:" + e.getMessage(), e); } if (!deleteSuccessful) {