【增加发布信息判断】

This commit is contained in:
weizhihong 2023-06-09 14:46:27 +08:00
parent 4e84442313
commit e6925eea9c

View File

@ -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<LineInfo> lineInfoWrapper = Wrappers.lambdaQuery();
lineInfoWrapper.eq(LineInfo::getLineId, publishedDto.getLineId());