|
@@ -3,6 +3,7 @@ package com.zanxiang.game.data.serve.service.impl;
|
|
|
import com.google.common.base.CaseFormat;
|
|
|
import com.zanxiang.erp.base.ErpServer;
|
|
|
import com.zanxiang.erp.base.rpc.ISysUserRpc;
|
|
|
+import com.zanxiang.erp.security.util.SecurityUtil;
|
|
|
import com.zanxiang.game.data.serve.component.DataPowerComponent;
|
|
|
import com.zanxiang.game.data.serve.pojo.dto.*;
|
|
|
import com.zanxiang.game.data.serve.pojo.entity.AdsGameServerDay;
|
|
@@ -14,6 +15,8 @@ import com.zanxiang.game.data.serve.pojo.vo.*;
|
|
|
import com.zanxiang.game.data.serve.service.IGameServerService;
|
|
|
import com.zanxiang.game.data.serve.utils.Page;
|
|
|
import com.zanxiang.game.module.base.ServerInfo;
|
|
|
+import com.zanxiang.game.module.base.pojo.enums.GameAuthEnum;
|
|
|
+import com.zanxiang.game.module.base.pojo.vo.GameAuthUserVO;
|
|
|
import com.zanxiang.game.module.base.rpc.GameAuthRpc;
|
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -555,12 +558,12 @@ public class GameServerServiceImpl implements IGameServerService {
|
|
|
|
|
|
String gsIds = vos.stream().filter(i -> StringUtils.isNotEmpty(i.getGsIds())).map(GSGameServerDayVO::getGsIds).collect(Collectors.joining(","));
|
|
|
ResultVO<Map<Long, String>> userMap = null;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ if (StringUtils.isNotEmpty(gsIds)) {
|
|
|
+
|
|
|
+ List<Long> userIds = Arrays.stream(gsIds.split(",")).map(Long::parseLong).toList();
|
|
|
+
|
|
|
+ userMap = sysUserRpc.getUserNameByIds(userIds);
|
|
|
+ }
|
|
|
for (GSGameServerDayVO vo : vos) {
|
|
|
List<GSGameServerDayRVO> rDataList = collect.get(vo.getSourceSystem() + vo.getServerId() + vo.getParentGameId());
|
|
|
for (int i = 0; i < fieldList.size(); i++) {
|
|
@@ -828,13 +831,13 @@ public class GameServerServiceImpl implements IGameServerService {
|
|
|
|
|
|
|
|
|
private Criteria getGameServerDayCriteria(GSGameServerDayDTO dto) {
|
|
|
-
|
|
|
+ GameAuthUserVO userGameInfo = gameAuthRpc.getGameAuthByUserIds().getData();
|
|
|
List<Long> serverIdByGS = null;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ if (GameAuthEnum.getByValue(userGameInfo.getGameAuthEnum().getValue()) != null) {
|
|
|
+
|
|
|
+ serverIdByGS = getServerIdByGSId(SecurityUtil.getUserId()).stream().filter(StringUtils::isNotEmpty).map(Long::parseLong).collect(Collectors.toList());
|
|
|
+ }
|
|
|
|
|
|
Criteria cri = Cnd.cri();
|
|
|
if (CollectionUtils.isNotEmpty(serverIdByGS)) {
|