|
@@ -16,6 +16,7 @@ import com.zanxiang.game.module.manage.pojo.vo.GameUserVO;
|
|
|
import com.zanxiang.game.module.manage.service.*;
|
|
|
import com.zanxiang.game.module.mybatis.entity.Agent;
|
|
|
import com.zanxiang.game.module.mybatis.entity.GameUser;
|
|
|
+import com.zanxiang.game.module.mybatis.entity.GameUserRole;
|
|
|
import com.zanxiang.game.module.mybatis.mapper.GameUserMapper;
|
|
|
import com.zanxiang.module.util.bean.BeanUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -53,6 +54,9 @@ public class GameUserServiceImpl extends ServiceImpl<GameUserMapper, GameUser> i
|
|
|
@Autowired
|
|
|
private IAgentService agentService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IGameUserRoleService gameUserRoleService;
|
|
|
+
|
|
|
@Override
|
|
|
public IPage<GameUserListVO> gameUserList(GameUserListParam param) {
|
|
|
|
|
@@ -131,6 +135,10 @@ public class GameUserServiceImpl extends ServiceImpl<GameUserMapper, GameUser> i
|
|
|
gameUserListVO.setCpName(cpMap.get(gameDTO.getCpId()) == null ? null : cpMap.get(gameDTO.getCpId()).getCpName());
|
|
|
gameUserListVO.setGameCategoryName(GameCategoryEnum.getNameByCategory(gameDTO.getCategory()));
|
|
|
}
|
|
|
+
|
|
|
+ GameUserRole gameUserRole = gameUserRoleService.getLastGameUserRoleName(gameUser.getUserId(), gameUser.getGameId());
|
|
|
+ gameUserListVO.setLastGameRoleName(gameUserRole == null ? null : gameUserRole.getRoleName());
|
|
|
+
|
|
|
return gameUserListVO;
|
|
|
}
|
|
|
|