|
|
|
@ -22,6 +22,9 @@ public class SaveProductLineDomainServiceImpl implements SaveProductLineDomainSe |
|
|
|
@Override |
|
|
|
public Result<ProductLineDTO> 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 不能为空"); |
|
|
|
} |
|
|
|
|