Browse Source

2025.06.16

java8
jiayang yue 6 months ago
parent
commit
a3639a265e
  1. 23
      src/main/java/com/xujie/sys/modules/pms/service/Impl/ProofingInformationServiceImpl.java

23
src/main/java/com/xujie/sys/modules/pms/service/Impl/ProofingInformationServiceImpl.java

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

Loading…
Cancel
Save