|
@@ -266,7 +266,17 @@ public class AppUserCountTask {
|
|
|
queryWrapper.le(AppUserCount::getStrDate, endTime);
|
|
|
queryWrapper.eq(AppUserCount::getAgentUserId, appUser.getUserid());
|
|
|
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"));
|
|
|
+ String beginTimeStr = DateUtil.format(beginTime,"yyyy-MM-dd");
|
|
|
+ String endTimeStr = DateUtil.format(endTime,"yyyy-MM-dd");
|
|
|
+ List<AppUserCount> appUserCountList = appUserCountService.getAppUserCountNew(appUser.getUserid(),beginTimeStr,endTimeStr);
|
|
|
+ //查询当前用户盈亏
|
|
|
+ List<AppUserCount> curUserCouts = appUserCountService.getListByUserId(appUser.getUserid(),beginTimeStr,endTimeStr);
|
|
|
+ if(null!=curUserCouts && curUserCouts.size()>0){
|
|
|
+ if(null == appUserCountList){
|
|
|
+ appUserCountList = new ArrayList<>();
|
|
|
+ }
|
|
|
+ appUserCountList.addAll(curUserCouts);
|
|
|
+ }
|
|
|
if (null != appUserCountList && appUserCountList.size() > 0) {
|
|
|
//游戏输钱
|
|
|
double loseAmount = appUserCountList.stream().mapToDouble(e -> e.getGameLoseAmount()).sum();
|