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 b2dda20b..0aed5d2e 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 @@ -187,21 +187,21 @@ public class ProofingInformationServiceImpl implements ProofingInformationServic if (data.getProofingId() == null) { data.setProofingId(data.getProofingId()); } - try { if (data.getDocumentId() == null) { - if (data.getDocumentDefinitionListId().equalsIgnoreCase("-1")) { - proofingInformationMapper.deleteProofingDocument1(data); - }else { - proofingInformationMapper.deleteDocumentType(data); - proofingInformationMapper.deleteProofingDocument1(data); + try { + if (data.getDocumentDefinitionListId().equalsIgnoreCase("-1")) { + proofingInformationMapper.deleteProofingDocument1(data); + }else { + proofingInformationMapper.deleteDocumentType(data); + proofingInformationMapper.deleteProofingDocument1(data); + } + } catch (Exception e) { + throw new RuntimeException("删除失败:" + e.getMessage(), e); } return R.ok(); }else { throw new RuntimeException("该文档类型存在上传的文件!"); } - } catch (Exception e) { - throw new RuntimeException("删除失败:" + e.getMessage(), e); - } } /**