Commit 619a4bb9 by zhiwj

修改用户资源获取的问题

parent d682ee60
......@@ -359,6 +359,11 @@ public class ResourceApiServiceImpl implements ResourceApiService {
UserResourceDTO userResourceDTO = resourceDTOList.get(0);
TabSysResource resource = this.resourceService.getResource(userResourceDTO.getResourceId());
CrowdWidgetDTO widgetDTO = crowdWidgetApiService.getScreenWidgetInfo(resource.getUserResource(), resource.getEnterpriseId()).getResult();
return EnterpriseServiceResponse.success(StringUtils.isNotBlank(widgetDTO.getSearchParams()) ? resource.getUserResource() : null);
if (StringUtils.isBlank(widgetDTO.getSearchParams())) {
return EnterpriseServiceResponse.success();
} else {
return EnterpriseServiceResponse.success(StringUtils.equals(widgetDTO.getSearchParams(), "[{\"type\":\"\",\"list\":[]}]") ? -1 : resource.getUserResource());
}
}
}
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