|
|
@@ -221,8 +221,8 @@ public class StatisticsDataController {
|
|
|
statisticsUserDataView.setNumOfCorpAccountUser(accounts.intValue());
|
|
|
|
|
|
statisticsUserDataView.setUserData(beanSearcher.search(StatisticsUserData.class, MapUtils.flatBuilder(request.getParameterMap()).build()));
|
|
|
- StatisticsUserData statisticsUserData = beanSearcher.searchFirst(StatisticsUserData.class, MapUtils.builder().field(StatisticsUserData::getStatisticsDate, thisZero.toDateStr()).onlySelect(StatisticsUserData::getNumOfRedBookUser).build());
|
|
|
- Integer numOfRedBookUser = statisticsUserData != null ? statisticsUserData.getNumOfRedBookUser() : 0;
|
|
|
+ Number redBookUsers = beanSearcher.searchSum(StatisticsUserData.class, MapUtils.flatBuilder(request.getParameterMap()).build(), "numOfRedBookUser");
|
|
|
+ Integer numOfRedBookUser = redBookUsers.intValue();
|
|
|
statisticsUserDataView.setNumOfRedBookUser(numOfRedBookUser);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(statisticsUserDataView);
|
|
|
}
|