|
|
@ -1,6 +1,5 @@ |
|
|
|
package com.epmet.datareport.service.evaluationindex.screen.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
@ -33,7 +32,6 @@ import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.stream.Collectors; |
|
|
@ -120,11 +118,10 @@ public class ScreenProjectServiceImpl implements ScreenProjectService { |
|
|
|
|
|
|
|
Result<CustomerAgencyUserRoleDTO> userRoles = userOpenFeignClient.getUserRoles(userRoleFormDTO); |
|
|
|
if (userRoles != null && userRoles.success() && userRoles.getData() != null){ |
|
|
|
String roles = userRoles.getData().getRoles(); |
|
|
|
Map<String,String> roles = userRoles.getData().getRoles(); |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(roles)){ |
|
|
|
Map<String,String> map = JSON.parseObject(roles, HashMap.class); |
|
|
|
item.setReportUserRoleSet(map.keySet()); |
|
|
|
if (!CollectionUtils.isEmpty(roles)){ |
|
|
|
item.setReportUserRoleSet(roles.keySet()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|