Commit 722b8a7f by guojuxing

应用策略接口

parent 647ec3ef
......@@ -101,8 +101,12 @@ public class ResourceGroupApiServiceImpl implements ResourceGroupApiService{
@Override
public ServiceResponse<ResourceGroupDTO> getResourceGroup(Integer resourceGroupId) {
TabSysResourceGroup record = resourceGroupService.getResourceGroup(resourceGroupId);
if (record == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "资源组不存在");
}
return ServiceResponse.success(EntityUtil.changeEntityNew(ResourceGroupDTO.class,
resourceGroupService.getResourceGroup(resourceGroupId)));
record));
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment