|
@@ -108,9 +108,9 @@ public class StatisticsDataScheduler {
|
|
|
|
|
|
|
|
statisticsUserData.setNumOfDistributeUser(statisticsUserDataMapper.getNumOfDistributeUserToday(yesZeroDate, thisZeroDate));
|
|
statisticsUserData.setNumOfDistributeUser(statisticsUserDataMapper.getNumOfDistributeUserToday(yesZeroDate, thisZeroDate));
|
|
|
|
|
|
|
|
- Integer numOfCorpUser = corpUserAuthMapper.selectCount(Wrappers.lambdaQuery(CorpUserAuth.class)
|
|
|
|
|
- .between(CorpUserAuth::getCreatedTime, yesZeroDate, thisZeroDate)
|
|
|
|
|
- .groupBy(CorpUserAuth::getExternalUserid));
|
|
|
|
|
|
|
+ List<CorpUserAuth> corpUserAuths = corpUserAuthMapper.selectList(Wrappers.lambdaQuery(CorpUserAuth.class)
|
|
|
|
|
+ .between(CorpUserAuth::getCreatedTime, yesZeroDate, thisZeroDate).select(CorpUserAuth::getExternalUserid).groupBy(CorpUserAuth::getExternalUserid));
|
|
|
|
|
+ Integer numOfCorpUser = corpUserAuths.isEmpty() ? 0 : corpUserAuths.size();
|
|
|
statisticsUserData.setNumOfCorpUser(numOfCorpUser);
|
|
statisticsUserData.setNumOfCorpUser(numOfCorpUser);
|
|
|
MapBuilder builder = MapUtils.builder()
|
|
MapBuilder builder = MapUtils.builder()
|
|
|
.put("time", String.format("ct.created_time between '%s' and '%s'", yesZeroDate, thisZeroDate))
|
|
.put("time", String.format("ct.created_time between '%s' and '%s'", yesZeroDate, thisZeroDate))
|