|
@@ -388,7 +388,7 @@ public class PitcherDataServiceImpl implements IPitcherDataService {
|
|
|
public PitcherDataDayTotalVO getPitcherDataDayTotal(PitcherDataDayTotalDTO dto) {
|
|
|
com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo(dto.getSourceSystem());
|
|
|
List<Long> userIds = CollectionUtils.isEmpty(dto.getPitcherId()) ? poerInfo.first : dto.getPitcherId();
|
|
|
-
|
|
|
+// List<Long> userIds = CollectionUtils.isEmpty(dto.getPitcherId()) ? null : dto.getPitcherId();
|
|
|
//不传递时间,默认查询当天
|
|
|
if (dto.getBeginDate() == null || dto.getEndDate() == null) {
|
|
|
dto.setBeginDate(LocalDate.now());
|
|
@@ -421,11 +421,23 @@ public class PitcherDataServiceImpl implements IPitcherDataService {
|
|
|
//执行sql
|
|
|
dao.execute(sql);
|
|
|
PitcherDataDayTotalVO vo = sql.getObject(PitcherDataDayTotalVO.class);
|
|
|
+
|
|
|
+ PitcherDataDayDTO pitcherDataDayDTO = new PitcherDataDayDTO();
|
|
|
+ BeanUtils.copyProperties(dto, pitcherDataDayDTO);
|
|
|
+ //查询用户id
|
|
|
+ Map<String, String> map = findUsersIdForGameData(pitcherDataDayDTO);
|
|
|
+
|
|
|
+ Long[] ids = ArrayUtils.EMPTY_LONG_OBJECT_ARRAY;
|
|
|
+
|
|
|
+ String idStr = map.values().stream().filter(string -> !string.isEmpty()).collect(Collectors.joining("/"));
|
|
|
+ if (StringUtils.isNotBlank(idStr)) {
|
|
|
+ ids = Arrays.stream(idStr.split("/")).map(Long::parseLong).toArray(Long[]::new);
|
|
|
+ }
|
|
|
+ vo.setUserDetails(new FirstNewUserAgainTrendVO().builder().usersId(ids).build());
|
|
|
if (StringUtils.isNotBlank(vo.getAmountD1())) {
|
|
|
//处理dayN数据
|
|
|
formatPitcherDataDayTotalDayN(vo);
|
|
|
}
|
|
|
-
|
|
|
return vo;
|
|
|
}
|
|
|
|
|
@@ -439,7 +451,7 @@ public class PitcherDataServiceImpl implements IPitcherDataService {
|
|
|
public Page<PitcherDataTotalVO> getPitcherDataTotal(PitcherDataTotalDTO dto) {
|
|
|
com.github.sd4324530.jtuple.Tuple2<List<Long>, List<Long>> poerInfo = dataPowerComponent.getPowerInfo(dto.getSourceSystem());
|
|
|
List<Long> userIds = CollectionUtils.isEmpty(dto.getPitcherId()) ? poerInfo.first : dto.getPitcherId();
|
|
|
-
|
|
|
+// List<Long> userIds = CollectionUtils.isEmpty(dto.getPitcherId()) ? null : dto.getPitcherId();
|
|
|
//如果注册时间参数为空,默认设置查询当天数据
|
|
|
if (dto.getBeginDate() == null || dto.getEndDate() == null) {
|
|
|
dto.setBeginDate(LocalDate.now());
|