This commit is contained in:
2025-08-18 10:44:55 +08:00
parent f0e915783d
commit 952096471a
3 changed files with 45 additions and 3 deletions

View File

@@ -25,6 +25,9 @@ public interface GameDayStatDataService extends IService<GameDayStatData> {
PageResult<GameUserDataDetailVo> userTotal(String erbanNoStr,
String channel, String gameId, String startDate, String endDate, Integer partitionId, Integer pageNo, Integer pageSize);
PageResult<GameUserDataDetailVo> userTotalV2(String erbanNoStr,
String channel, String gameId, String startDate, String endDate, Integer partitionId, Integer pageNo, Integer pageSize);
List<GameUserDataDetailVo> userListOffset7and14(String erbanNoStr,
String channel, String gameId, Integer partitionId);

View File

@@ -210,14 +210,19 @@ public class GameDayStatDataServiceImpl extends ServiceImpl<GameDayStatDataMappe
@Override
public PageResult<GameUserDataDetailVo> userTotal(String erbanNoStr, String channel, String gameId, String startDate, String endDate, Integer partitionId, Integer pageNo, Integer pageSize) {
if (StringUtils.isEmpty(erbanNoStr)) {
throw new AdminServiceException("请输入用户ID");
}
return userTotalV2(erbanNoStr, channel, gameId, startDate, endDate, partitionId, pageNo, pageSize);
}
@Override
public PageResult<GameUserDataDetailVo> userTotalV2(String erbanNoStr, String channel, String gameId, String startDate, String endDate, Integer partitionId, Integer pageNo, Integer pageSize) {
GameConstant.GameChannel byChannel = GameConstant.GameChannel.getByChannel(channel);
if (byChannel == null) {
throw new AdminServiceException("请选择第三方名称");
}
List<Long> uids = new ArrayList<>();
if (StringUtils.isEmpty(erbanNoStr)) {
throw new AdminServiceException("请输入用户ID");
}
String[] split = erbanNoStr.trim().split(SymbolConstants.COMMA);
List<Long> erbanNos = Arrays.stream(split).map(Long::valueOf).collect(Collectors.toList());
for (Long erbanNo : erbanNos) {
@@ -299,6 +304,8 @@ public class GameDayStatDataServiceImpl extends ServiceImpl<GameDayStatDataMappe
return pageResult;
}
@Override
public List<GameUserDataDetailVo> userListOffset7and14(String erbanNoStr, String channel, String gameId, Integer partitionId) {
GameConstant.GameChannel byChannel = GameConstant.GameChannel.getByChannel(channel);