|
@@ -258,11 +258,12 @@ public class AppUserCountTask {
|
|
|
if (null != list && list.size() > 0) {
|
|
|
list.forEach(appUser -> {
|
|
|
|
|
|
- LambdaQueryWrapper<AppUserCount> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+
|
|
|
queryWrapper.ge(AppUserCount::getStrDate, beginTime);
|
|
|
queryWrapper.le(AppUserCount::getStrDate, endTime);
|
|
|
queryWrapper.eq(AppUserCount::getAgentUserId, appUser.getUserid());
|
|
|
- List<AppUserCount> appUserCountList = appUserCountService.list(queryWrapper);
|
|
|
+ List<AppUserCount> appUserCountList = appUserCountService.list(queryWrapper);*/
|
|
|
+ List<AppUserCount> appUserCountList = appUserCountService.getAppUserCountNew(appUser.getUserid(),DateUtil.format(beginTime,"yyyy-MM-dd"),DateUtil.format(endTime,"yyyy-MM-dd"));
|
|
|
if (null != appUserCountList && appUserCountList.size() > 0) {
|
|
|
|
|
|
double loseAmount = appUserCountList.stream().mapToDouble(e -> e.getGameLoseAmount()).sum();
|