|
@@ -8,7 +8,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.zanxiang.erp.security.util.SecurityUtil;
|
|
|
import com.zanxiang.game.module.base.ServerInfo;
|
|
|
-import com.zanxiang.game.module.base.pojo.enums.GameAuthEnum;
|
|
|
import com.zanxiang.game.module.base.pojo.enums.GameCategoryEnum;
|
|
|
import com.zanxiang.game.module.base.pojo.enums.PayDeviceEnum;
|
|
|
import com.zanxiang.game.module.base.pojo.enums.PayWayEnum;
|
|
@@ -125,7 +124,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
Tuple2<List<Long>, List<AgentDTO>> tuple2 = agentService.getUserAgent(param.getAccountId(), param.getPitcherId(), param.getChannelId());
|
|
|
List<Long> agentIds = tuple2.getT1();
|
|
|
//投手没有渠道, 看不见数据
|
|
|
- if (Objects.equals(gameTuple.getT1(), GameAuthEnum.PITCHER.getValue()) && CollectionUtils.isEmpty(agentIds)) {
|
|
|
+ if (CollectionUtils.isEmpty(agentIds)) {
|
|
|
return new OrderListVO(param.toPage().getSize());
|
|
|
}
|
|
|
//查询用户id和名字条件
|
|
@@ -282,12 +281,13 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
//游戏获取
|
|
|
Tuple2<String, List<Long>> gameTuple = gameAuthService.getUserGameList(param.getPitcherId());
|
|
|
List<Long> gameIdList = gameTuple.getT2();
|
|
|
- if (CollectionUtils.isEmpty(gameIdList)) {
|
|
|
- return;
|
|
|
- }
|
|
|
//渠道获取
|
|
|
Tuple2<List<Long>, List<AgentDTO>> tuple2 = agentService.getUserAgent(param.getAccountId(), param.getPitcherId(), param.getChannelId());
|
|
|
List<Long> agentIds = tuple2.getT1();
|
|
|
+ //未获取到游戏或者渠道列表
|
|
|
+ if (CollectionUtils.isEmpty(gameIdList) || CollectionUtils.isEmpty(agentIds)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
//渠道
|
|
|
Map<Long, AgentDTO> agentMap = tuple2.getT2().stream().collect(Collectors.toMap(AgentDTO::getId, Function.identity()));
|
|
|
//查询用户id和名字条件
|