Commit 4d049538daeb2e5e7693fb1e418e46ebdebc5aea

Authored by 黄 x
1 parent 037e3427

feat: fix throw exception

... ... @@ -33,7 +33,7 @@ public class YtDataComponentServiceImpl
33 33 .eq(DataComponent::getTenantId, tenantId)
34 34 .eq(DataComponent::getDataBoardId, boardId));
35 35 if (dataComponentList.isEmpty()) {
36   - throw new YtDataValidationException(ErrorMessage.INVALID_PARAMETER.getMessage());
  36 + return null;
37 37 }
38 38 return dataComponentList.stream()
39 39 .map(
... ...