Commit d54f583a by zhiwj

代码结构调整

parent 039fed30
......@@ -411,10 +411,10 @@ 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();
if (StringUtils.isBlank(widgetDTO.getSearchParams())) {
if (Integer.valueOf(0).equals(widgetDTO.getAuthMode())) {
return EnterpriseServiceResponse.success();
} else {
return EnterpriseServiceResponse.success(StringUtils.equals(widgetDTO.getSearchParams(), "[{\"type\":\"\",\"list\":[]}]") ? -1 : resource.getUserResource());
return EnterpriseServiceResponse.success(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