|
@@ -160,10 +160,10 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getSourceSystem())) {
|
|
@@ -227,10 +227,10 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getSourceSystem())) {
|
|
@@ -460,7 +460,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
List<Long> pitcherIds = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : Collections.singletonList(dto.getPitcherId());
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getSourceSystem())) {
|
|
@@ -517,7 +517,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
List<Long> pitcherIds = dto.getPitcherId() == null ? dataPowerComponent.getSubUserIdList() : Collections.singletonList(dto.getPitcherId());
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getSourceSystem())) {
|
|
@@ -739,7 +739,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getSourceSystem())) {
|
|
@@ -802,7 +802,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
List<Long> gameIds = StringUtils.isBlank(dto.getGameId()) ? dataPowerComponent.getSubGameIdList() : Collections.singletonList(Long.parseLong(dto.getGameId()));
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getSourceSystem())) {
|
|
@@ -1454,7 +1454,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接注册时间查询条件
|
|
|
cri.where().andBetween("dt", dto.getBeginDate(), dto.getEndDate());
|
|
|
}
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏ID查询条件
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
@@ -1462,7 +1462,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源查询条件
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getAccountType())) {
|
|
@@ -1532,7 +1532,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源查询条件
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getAccountType())) {
|
|
@@ -1595,7 +1595,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接注册时间查询条件
|
|
|
cri.where().andBetween("dt", dto.getBeginDate(), dto.getEndDate());
|
|
|
}
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏ID查询条件
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
@@ -1664,7 +1664,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接注册时间查询条件
|
|
|
cri.where().andBetween("dt", dto.getBeginDate(), dto.getEndDate());
|
|
|
}
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏ID查询条件
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
@@ -1672,7 +1672,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源查询条件
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getAccountType())) {
|
|
@@ -1727,7 +1727,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源查询条件
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(dto.getAccountType())) {
|
|
@@ -1777,7 +1777,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接注册时间查询条件
|
|
|
cri.where().andBetween("dt", dto.getBeginDate(), dto.getEndDate());
|
|
|
}
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏ID查询条件
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
@@ -1932,7 +1932,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
private Criteria myCri(PitcherGameMediaDataTotalDTO dto, String type, List<Long> gameIds, List<Long> pitcherIds) {
|
|
|
//根据传入的dto拼接查询参数
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏id查询条件
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
@@ -1948,7 +1948,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
//拼接投手ID
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
@@ -1984,7 +1984,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
private Criteria myCriRecharge(PitcherGameMediaDataTotalDTO dto, Boolean needRegTime, List<Long> gameIds, List<Long> pitcherIds) {
|
|
|
//根据传入的dto拼接查询参数
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏id查询条件
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
@@ -2000,7 +2000,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
//拼接投手ID
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
@@ -2032,7 +2032,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
private Criteria myCriRole(PitcherGameMediaDataTotalDTO dto, List<Long> gameIds, List<Long> pitcherIds) {
|
|
|
//根据传入的dto拼接查询参数
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏id查询条件
|
|
|
cri.where().andInList("user_game_id", gameIds);
|
|
|
}
|
|
@@ -2048,7 +2048,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
//拼接投手ID
|
|
|
cri.where().andInList("user_zx_pitcher_id", pitcherIds);
|
|
|
}
|
|
@@ -2083,7 +2083,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
//拼接投手ID
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
@@ -2122,7 +2122,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
//拼接投手ID
|
|
|
cri.where().andInList("pitcher_id", pitcherIds);
|
|
|
}
|
|
@@ -2157,7 +2157,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
//拼接SDK来源
|
|
|
cri.where().andEquals("source_system", dto.getSourceSystem());
|
|
|
}
|
|
|
- if (dto.getPitcherId() != null) {
|
|
|
+ if (pitcherIds != null) {
|
|
|
//拼接投手ID
|
|
|
cri.where().andInList("user_zx_pitcher_id", pitcherIds);
|
|
|
}
|
|
@@ -2188,7 +2188,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
private Criteria myCriGame(GameMediaDataTotalDTO dto, String type, List<Long> gameIds) {
|
|
|
//根据传入的dto拼接查询参数
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏id查询条件
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
@@ -2235,7 +2235,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
private Criteria myCriRechargeGame(GameMediaDataTotalDTO dto, Boolean needRegTime, List<Long> gameIds) {
|
|
|
//根据传入的dto拼接查询参数
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏id查询条件
|
|
|
cri.where().andInList("game_id", gameIds);
|
|
|
}
|
|
@@ -2278,7 +2278,7 @@ public class IMediaDataServiceImpl implements IMediaDataService {
|
|
|
private Criteria myCriRoleGame(GameMediaDataTotalDTO dto, List<Long> gameIds) {
|
|
|
//根据传入的dto拼接查询参数
|
|
|
Criteria cri = Cnd.cri();
|
|
|
- if (StringUtils.isNotBlank(dto.getGameId())) {
|
|
|
+ if (gameIds != null) {
|
|
|
//拼接游戏id查询条件
|
|
|
cri.where().andInList("user_game_id", gameIds);
|
|
|
}
|