|
@@ -16,7 +16,6 @@ import com.zanxiang.game.module.manage.pojo.vo.GameAuthRoleGroupVO;
|
|
import com.zanxiang.game.module.manage.service.IGameAuthRoleGroupService;
|
|
import com.zanxiang.game.module.manage.service.IGameAuthRoleGroupService;
|
|
import com.zanxiang.game.module.mybatis.entity.GameAuthRoleGroup;
|
|
import com.zanxiang.game.module.mybatis.entity.GameAuthRoleGroup;
|
|
import com.zanxiang.game.module.mybatis.mapper.GameAuthRoleGroupMapper;
|
|
import com.zanxiang.game.module.mybatis.mapper.GameAuthRoleGroupMapper;
|
|
-import com.zanxiang.module.util.JsonUtil;
|
|
|
|
import com.zanxiang.module.util.bean.BeanUtil;
|
|
import com.zanxiang.module.util.bean.BeanUtil;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
@@ -57,17 +56,7 @@ public class GameAuthRoleGroupServiceImpl extends ServiceImpl<GameAuthRoleGroupM
|
|
List<Long> userIdList = records.stream().map(GameAuthRoleGroupVO::getUserId)
|
|
List<Long> userIdList = records.stream().map(GameAuthRoleGroupVO::getUserId)
|
|
.distinct().collect(Collectors.toList());
|
|
.distinct().collect(Collectors.toList());
|
|
Map<Long, String> userNameMap = sysUserRpc.getUserNameByIds(userIdList).getData();
|
|
Map<Long, String> userNameMap = sysUserRpc.getUserNameByIds(userIdList).getData();
|
|
-
|
|
|
|
- log.error("获取授权角色名字, userNameMap : {}", JsonUtil.toString(userNameMap));
|
|
|
|
-
|
|
|
|
records.forEach(r -> r.setUserName(userNameMap.get(r.getUserId())));
|
|
records.forEach(r -> r.setUserName(userNameMap.get(r.getUserId())));
|
|
-
|
|
|
|
- log.error("设置名字之后, records : {}", JsonUtil.toString(records));
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- log.error("设置名字之后, gameAuthRoleGroupPage : {}", JsonUtil.toString(gameAuthRoleGroupPage));
|
|
|
|
-
|
|
|
|
-
|
|
|
|
return gameAuthRoleGroupPage;
|
|
return gameAuthRoleGroupPage;
|
|
}
|
|
}
|
|
|
|
|