From e6925eea9ce4c9913a998e070b4811bc4d342a30 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Fri, 9 Jun 2023 14:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=88=A4=E6=96=AD=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../club/joylink/xiannccda/service/PublishedGiService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/club/joylink/xiannccda/service/PublishedGiService.java b/src/main/java/club/joylink/xiannccda/service/PublishedGiService.java index c3fa23d..f1e9fe2 100644 --- a/src/main/java/club/joylink/xiannccda/service/PublishedGiService.java +++ b/src/main/java/club/joylink/xiannccda/service/PublishedGiService.java @@ -46,6 +46,9 @@ public class PublishedGiService { if (drafting == null) { throw BusinessExceptionAssertEnum.DATA_NOT_EXIST.exception(String.format("草稿[%s]信息不存在", publishedDto.getDraftingId())); } + if (drafting.getProto() == null) { + throw BusinessExceptionAssertEnum.DATA_NOT_EXIST.exception(String.format("草稿[%s]绘图数据信息为空", publishedDto.getDraftingId())); + } // 查询线路信息是否存在 LambdaQueryWrapper lineInfoWrapper = Wrappers.lambdaQuery(); lineInfoWrapper.eq(LineInfo::getLineId, publishedDto.getLineId());