|
@@ -55,12 +55,9 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
|
|
|
* @return
|
|
|
*/
|
|
|
public Page<PromotionDayVO> getPromotionDayListData(PromotionDayDTO dto) {
|
|
|
-// Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
-// List<Long> userIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
-// List<Long> gameIds = dto.getGameId() == null ? poerInfo.second : Collections.singletonList(dto.getGameId());
|
|
|
-
|
|
|
- List<Long> userIds = dto.getPitcherId() == null ? null : Collections.singletonList(dto.getPitcherId());
|
|
|
- List<Long> gameIds = dto.getGameId() == null ? null : Collections.singletonList(dto.getGameId());
|
|
|
+ Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> userIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
+ List<Long> gameIds = dto.getGameId() == null ? poerInfo.second : Collections.singletonList(dto.getGameId());
|
|
|
|
|
|
//如果没有排序条件给默认值
|
|
|
if (StringUtils.isBlank(dto.getSortFiled())) {
|
|
@@ -146,12 +143,9 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
|
|
|
*/
|
|
|
@Override
|
|
|
public Page<PromotionDayVO> getPromotionDayData(PromotionDayDTO dto) {
|
|
|
-// Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
-// List<Long> userIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
-// List<Long> gameIds = dto.getGameId() == null ? poerInfo.second : Collections.singletonList(dto.getGameId());
|
|
|
-
|
|
|
- List<Long> userIds = dto.getPitcherId() == null ? null : Collections.singletonList(dto.getPitcherId());
|
|
|
- List<Long> gameIds = dto.getGameId() == null ? null : Collections.singletonList(dto.getGameId());
|
|
|
+ Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> userIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
+ List<Long> gameIds = dto.getGameId() == null ? poerInfo.second : Collections.singletonList(dto.getGameId());
|
|
|
|
|
|
//如果没有排序条件给默认值
|
|
|
if (StringUtils.isBlank(dto.getSortFiled())) {
|
|
@@ -233,12 +227,9 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
|
|
|
*/
|
|
|
@Override
|
|
|
public PromotionDayTotalVO getPromotionDayTotalData(PromotionDayTotalDTO dto) {
|
|
|
-// Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
-// List<Long> userIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
-// List<Long> gameIds = dto.getGameId() == null ? poerInfo.second : Collections.singletonList(dto.getGameId());
|
|
|
-
|
|
|
- List<Long> userIds = dto.getPitcherId() == null ? null : Collections.singletonList(dto.getPitcherId());
|
|
|
- List<Long> gameIds = dto.getGameId() == null ? null : Collections.singletonList(dto.getGameId());
|
|
|
+ Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo();
|
|
|
+ List<Long> userIds = dto.getPitcherId() == null ? poerInfo.first : Collections.singletonList(dto.getPitcherId());
|
|
|
+ List<Long> gameIds = dto.getGameId() == null ? poerInfo.second : Collections.singletonList(dto.getGameId());
|
|
|
|
|
|
//创建查询条件
|
|
|
Criteria cri = Cnd.cri();
|