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) {