|
@@ -156,8 +156,9 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
@Override
|
|
|
public Page<PitcherGameMediaDataDayVO> getPitcherGameMediaDataDay(PitcherGameMediaDataDayDTO dto) {
|
|
|
//添加权限
|
|
|
- List<Long> pitcherIds = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : Collections.singletonList(dto.getPitcherId());
|
|
|
- List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> pitcherIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
+ List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? poerInfo.second : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
if (pitcherIds != null) {
|
|
@@ -223,8 +224,9 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
@Override
|
|
|
public PitcherGameMediaDataDayVO getPitcherGameMediaDataDayTotal(PitcherGameMediaDataDayTotalDTO dto) {
|
|
|
//添加权限
|
|
|
- List<Long> pitcherIds = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : Collections.singletonList(dto.getPitcherId());
|
|
|
- List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> pitcherIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
+ List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? poerInfo.second : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
if (pitcherIds != null) {
|
|
@@ -271,8 +273,9 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
@Override
|
|
|
public Page<PitcherGameMediaDataTotalVO> getPitcherGameMediaDataTotal(PitcherGameMediaDataTotalDTO dto) {
|
|
|
//添加权限
|
|
|
- List<Long> pitcherIds = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : List.of(dto.getPitcherId());
|
|
|
- List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : List.of(Long.parseLong(dto.getGameId()));
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> pitcherIds = dto.getPitcherId() == null ? poerInfo.first : List.of(dto.getPitcherId());
|
|
|
+ List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? poerInfo.second : List.of(Long.parseLong(dto.getGameId()));
|
|
|
//如果注册时间参数为空,默认设置查询当天数据
|
|
|
if (dto.getBeginDate() == null || dto.getEndDate() == null) {
|
|
|
dto.setBeginDate(LocalDate.now());
|
|
@@ -366,8 +369,9 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
*/
|
|
|
@Override
|
|
|
public PitcherGameMediaDataTotalVO getPitcherGameMediaDataTotalSum(PitcherGameMediaDataTotalSumDTO dto) {
|
|
|
- List<Long> pitcherId = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : Collections.singletonList(dto.getPitcherId());
|
|
|
- List<Long> gameIds = dto.getGameId() == null ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> pitcherId = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
+ List<Long> gameIds = dto.getGameId() == null ? poerInfo.second : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//如果注册时间参数为空,默认设置查询当天数据
|
|
|
if (dto.getBeginDate() == null || dto.getEndDate() == null) {
|
|
|
dto.setBeginDate(LocalDate.now());
|
|
@@ -457,7 +461,8 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
@Override
|
|
|
public Page<PitcherMediaDataDayVO> getPitcherMediaDataDay(PitcherMediaDataDayDTO dto) {
|
|
|
//添加权限
|
|
|
- List<Long> pitcherIds = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : Collections.singletonList(dto.getPitcherId());
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> pitcherIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
if (pitcherIds != null) {
|
|
@@ -514,7 +519,8 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
@Override
|
|
|
public PitcherMediaDataDayVO getPitcherMediaDataDayTotal(PitcherMediaDataDayTotalDTO dto) {
|
|
|
//添加权限
|
|
|
- List<Long> pitcherIds = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : Collections.singletonList(dto.getPitcherId());
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> pitcherIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
if (pitcherIds != null) {
|
|
@@ -552,7 +558,8 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
@Override
|
|
|
public Page<PitcherMediaDataTotalVO> getPitcherMediaDataTotal(PitcherMediaDataTotalDTO dto) {
|
|
|
//添加权限
|
|
|
- List<Long> pitcherIds = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : List.of(dto.getPitcherId());
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> pitcherIds = dto.getPitcherId() == null ? poerInfo.first : List.of(dto.getPitcherId());
|
|
|
//如果注册时间参数为空,默认设置查询当天数据
|
|
|
if (dto.getBeginDate() == null || dto.getEndDate() == null) {
|
|
|
dto.setBeginDate(LocalDate.now());
|
|
@@ -646,7 +653,8 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
*/
|
|
|
@Override
|
|
|
public PitcherMediaDataTotalVO getPitcherMediaDataTotalSum(PitcherMediaDataTotalSumDTO dto) {
|
|
|
- List<Long> pitcherId = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : Collections.singletonList(dto.getPitcherId());
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> pitcherId = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
//如果注册时间参数为空,默认设置查询当天数据
|
|
|
if (dto.getBeginDate() == null || dto.getEndDate() == null) {
|
|
|
dto.setBeginDate(LocalDate.now());
|
|
@@ -736,7 +744,8 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
@Override
|
|
|
public Page<GameMediaDataDayVO> getGameMediaDataDay(GameMediaDataDayDTO dto) {
|
|
|
//添加权限
|
|
|
- List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? poerInfo.second : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
if (gameIds != null) {
|
|
@@ -799,7 +808,8 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
@Override
|
|
|
public GameMediaDataDayVO getGameMediaDataDayTotal(GameMediaDataDayTotalDTO dto) {
|
|
|
//添加权限
|
|
|
- List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? poerInfo.second : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
if (gameIds != null) {
|
|
@@ -843,7 +853,8 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
@Override
|
|
|
public Page<GameMediaDataTotalVO> getGameMediaDataTotal(GameMediaDataTotalDTO dto) {
|
|
|
//添加权限
|
|
|
- List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : List.of(Long.parseLong(dto.getGameId()));
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? poerInfo.second : List.of(Long.parseLong(dto.getGameId()));
|
|
|
//如果注册时间参数为空,默认设置查询当天数据
|
|
|
if (dto.getBeginDate() == null || dto.getEndDate() == null) {
|
|
|
dto.setBeginDate(LocalDate.now());
|
|
@@ -937,7 +948,8 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
*/
|
|
|
@Override
|
|
|
public GameMediaDataTotalVO getGameMediaDataTotalSum(GameMediaDataTotalSumDTO dto) {
|
|
|
- List<Long> gameIds = dto.getGameId() == null ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
+ com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> gameIds = dto.getGameId() == null ? poerInfo.second : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//如果注册时间参数为空,默认设置查询当天数据
|
|
|
if (dto.getBeginDate() == null || dto.getEndDate() == null) {
|
|
|
dto.setBeginDate(LocalDate.now());
|