‘linchangsheng’ 9 달 전
부모
커밋
e4719dbd39
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      mall-server-api/src/main/java/com/gree/mall/manager/logic/big/BigLogic.java

+ 3 - 2
mall-server-api/src/main/java/com/gree/mall/manager/logic/big/BigLogic.java

@@ -269,9 +269,10 @@ public class BigLogic {
                 .between(UserLog::getCreateTime, DateUtil.offsetDay(DateUtil.beginOfDay(new Date()), -1), DateUtil.offsetDay(DateUtil.endOfDay(new Date()), -1))
                 .count();
 
-        Integer allWorker = websitUserService.lambdaQuery().in(!CollectionUtils.isEmpty(websitIds) && !adminUser.getIsMaster(),WebsitUser::getWebsitId, websitIds)
+        Integer allWorker = websitUserService.lambdaQuery()
+                .in(!CollectionUtils.isEmpty(websitIds) && !adminUser.getIsMaster(),WebsitUser::getWebsitId, websitIds)
                 .groupBy(WebsitUser::getUserId)
-                .count();
+                .select(WebsitUser::getId).list().size();
 
 
         List<String> userIds = userLogService.lambdaQuery().eq(UserLog::getLoginType, IsYesNoEnum.NO.getKey())