Skip to content

Commit

Permalink
[INLONG-10975][Manager] Fix the problem of when saving the group, onl…
Browse files Browse the repository at this point in the history
…y the existence of the groupid under the current tenant was verified
  • Loading branch information
fuweng11 committed Sep 2, 2024
1 parent e787806 commit a347eb8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public String save(InlongGroupRequest request, String operator) {
Preconditions.expectNotNull(request, "inlong group request cannot be empty");

String groupId = request.getInlongGroupId();
InlongGroupEntity entity = groupMapper.selectByGroupId(groupId);
InlongGroupEntity entity = groupMapper.selectByGroupIdWithoutTenant(groupId);
if (entity != null) {
LOGGER.error("groupId={} has already exists", groupId);
throw new BusinessException(ErrorCodeEnum.GROUP_DUPLICATE);
Expand Down Expand Up @@ -278,7 +278,7 @@ public List<BatchResult> batchSave(List<InlongGroupRequest> groupRequestList, St
@Override
public Boolean exist(String groupId) {
Preconditions.expectNotNull(groupId, ErrorCodeEnum.GROUP_ID_IS_EMPTY.getMessage());
InlongGroupEntity entity = groupMapper.selectByGroupId(groupId);
InlongGroupEntity entity = groupMapper.selectByGroupIdWithoutTenant(groupId);
LOGGER.debug("success to check inlong group {}, exist? {}", groupId, entity != null);
return entity != null;
}
Expand Down

0 comments on commit a347eb8

Please sign in to comment.