From 9b2c3a9a8f04a1f08c124a3b96b7f8fa57bdbc8c Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:28:43 +0800 Subject: [PATCH] =?UTF-8?q?2024.9.18=20=E4=B8=80=E3=80=81=E7=89=A9?= =?UTF-8?q?=E6=96=99=E6=88=90=E6=9C=AC=E4=BF=A1=E6=81=AF=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=EF=BC=88=E7=AC=AC=E4=BA=8C=E7=89=88=EF=BC=89=20=E4=BA=8C?= =?UTF-8?q?=E3=80=81=E5=8A=A0=E5=B7=A5=E4=B8=AD=E5=BF=83=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=94=B9=E9=80=A0=20=E4=B8=89=E3=80=81=E6=A0=87=E5=87=86?= =?UTF-8?q?=E5=B7=A5=E5=BA=8F=EF=BC=88=E7=AC=AC=E4=BA=8C=E7=89=88=EF=BC=89?= =?UTF-8?q?=20=E5=9B=9B=E3=80=81=E5=95=86=E5=93=81=E7=BB=84=20-=20?= =?UTF-8?q?=E6=A0=87=E5=87=86=E5=B7=A5=E5=BA=8F=EF=BC=88=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E7=89=88=EF=BC=89=20=E4=BA=94=E3=80=81=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=BB=84=20-=20Process=20Time=20Matrix=EF=BC=88=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E7=89=88=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Impl/ProofingInformationServiceImpl.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 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); - } } /**