Commit 9033e9dd by 田超

Merge branch 'fixbug/fixServeTotalCount' into 'master'

fix: [none] 解决资源统计只有1v1时统计错误的问题

See merge request rays/pcloud-book!883
parents 0bcb938b 42c513a8
...@@ -1095,14 +1095,14 @@ public class BookAdviserBizImpl implements BookAdviserBiz { ...@@ -1095,14 +1095,14 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
added = true; added = true;
} }
} }
if(bookGroupServeCountDTO != null) { // 设置默认值
int rightsCount = 0;
if(bookGroupServeCountDTO != null && JoinGroupTypeEnum.XIAORUI.getCode().equals(bookGroupServeCountDTO.getJoinGroupType())) {
// 如果是小睿码,则设置权益数 // 如果是小睿码,则设置权益数
if (JoinGroupTypeEnum.XIAORUI.getCode().equals(bookGroupServeCountDTO.getJoinGroupType())) { rightsCount = null == bookGroupServeCountDTO.getRightsCount() ? 0 : bookGroupServeCountDTO.getRightsCount();
int rightsCount = null == bookGroupServeCountDTO.getRightsCount() ? 0 : bookGroupServeCountDTO.getRightsCount();
bookResourceStatisticsDTO.setRightsCount(rightsCount);
bookResourceStatisticsDTO.setServeTotalCount(bookResourceStatisticsDTO.getServeCount() + rightsCount);
}
} }
bookResourceStatisticsDTO.setRightsCount(rightsCount);
bookResourceStatisticsDTO.setServeTotalCount(bookResourceStatisticsDTO.getServeCount() + rightsCount);
mapBookResourceStatistics.put(bookChannelAdviserId, bookResourceStatisticsDTO); mapBookResourceStatistics.put(bookChannelAdviserId, bookResourceStatisticsDTO);
} }
return mapBookResourceStatistics; return mapBookResourceStatistics;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment