From c6ccfd6670c359cf2ef1ea9c2ae3df5244484879 Mon Sep 17 00:00:00 2001 From: luogw <3132758203@qq.com> Date: Tue, 3 Mar 2026 11:20:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E7=BA=BF=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E7=A9=BA=E5=80=BC=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/service/impl/SaveProductLineDomainServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/project/information/domain/service/impl/SaveProductLineDomainServiceImpl.java b/src/main/java/com/project/information/domain/service/impl/SaveProductLineDomainServiceImpl.java index 83ae5da..837272a 100644 --- a/src/main/java/com/project/information/domain/service/impl/SaveProductLineDomainServiceImpl.java +++ b/src/main/java/com/project/information/domain/service/impl/SaveProductLineDomainServiceImpl.java @@ -22,6 +22,9 @@ public class SaveProductLineDomainServiceImpl implements SaveProductLineDomainSe @Override public Result save(ProductLineDTO dto) throws Exception { // 校验 + if (StrUtil.isBlank(dto.getName())) { + throw new BusinessErrorException("产品线/子产品线名称不能为空"); + } if (StrUtil.isBlank(dto.getBusiness()) && ObjectUtil.isEmpty(dto.getBusinessId())) { throw new BusinessErrorException("所属 BG 不能为空"); }