|
|
@ -117,20 +117,21 @@ public class ProofingInformationServiceImpl implements ProofingInformationServic |
|
|
deleteSuccessful = false; |
|
|
deleteSuccessful = false; |
|
|
throw new RuntimeException("编辑打样文档失败:" + e.getMessage(), e); |
|
|
throw new RuntimeException("编辑打样文档失败:" + e.getMessage(), e); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
// 插入操作 |
|
|
|
|
|
try { |
|
|
|
|
|
List<ProofingInformationData> 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<ProofingInformationData> 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) { |
|
|
if (!deleteSuccessful) { |
|
|
|