|
@@ -289,6 +289,7 @@ public class BigLogic {
|
|
|
List<String> websitIds = adminUser.getAdminWebsitIds();
|
|
|
|
|
|
|
|
|
+ //后台登录用户
|
|
|
Integer loginComapnyNum = userLogService.lambdaQuery().eq(UserLog::getLoginType, IsYesNoEnum.YES.getKey())
|
|
|
.eq(UserLog::getType, "LOGIN")
|
|
|
.in(!CollectionUtils.isEmpty(companyIds), UserLog::getCompanyWechatId, companyIds)
|
|
@@ -302,6 +303,7 @@ 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)
|
|
|
.groupBy(WebsitUser::getUserId)
|
|
@@ -313,19 +315,22 @@ public class BigLogic {
|
|
|
.eq(UserLog::getType, "LOGIN")
|
|
|
.in(!CollectionUtils.isEmpty(companyIds), UserLog::getCompanyWechatId, companyIds)
|
|
|
.between(UserLog::getCreateTime, DateUtil.beginOfDay(new Date()), DateUtil.endOfDay(new Date()))
|
|
|
+ .groupBy(UserLog::getUserId)
|
|
|
.select(UserLog::getUserId)
|
|
|
.list().stream().map(UserLog::getUserId).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
Integer allWorkerLogin = CollectionUtils.isEmpty(userIds)?0:websitUserService.lambdaQuery()
|
|
|
- .in(CollectionUtils.isEmpty(websitIds) && !adminUser.getIsMaster(),WebsitUser::getWebsitId, websitIds).in(WebsitUser::getUserId,userIds).count();
|
|
|
+ .in(!CollectionUtils.isEmpty(websitIds) ,WebsitUser::getWebsitId, websitIds).in(WebsitUser::getUserId,userIds)
|
|
|
+ .count();
|
|
|
|
|
|
|
|
|
- List<String> userIdBefores = userLogService.lambdaQuery().eq(UserLog::getLoginType, IsYesNoEnum.YES.getKey())
|
|
|
+ List<String> userIdBefores = userLogService.lambdaQuery().eq(UserLog::getLoginType, IsYesNoEnum.NO.getKey())
|
|
|
.eq(UserLog::getMiniType, UserTypeEnum.WORKER.getKey())
|
|
|
.eq(UserLog::getType, "LOGIN")
|
|
|
.in(!CollectionUtils.isEmpty(companyIds), UserLog::getCompanyWechatId, companyIds)
|
|
|
.between(UserLog::getCreateTime, DateUtil.offsetDay(DateUtil.beginOfDay(new Date()), -1), DateUtil.offsetDay(DateUtil.endOfDay(new Date()), -1))
|
|
|
+ .groupBy(UserLog::getUserId)
|
|
|
.select(UserLog::getUserId)
|
|
|
.list().stream().map(UserLog::getUserId).collect(Collectors.toList());
|
|
|
|
|
@@ -342,25 +347,23 @@ public class BigLogic {
|
|
|
.in(!CollectionUtils.isEmpty(companyIds), UserLog::getCompanyWechatId, companyIds)
|
|
|
.between(UserLog::getCreateTime, DateUtil.beginOfDay(new Date()), DateUtil.endOfDay(new Date())).count();
|
|
|
|
|
|
- Integer allServiceBefore = userLogService.lambdaQuery().eq(UserLog::getLoginType, IsYesNoEnum.YES.getKey())
|
|
|
+ Integer allServiceBefore = userLogService.lambdaQuery().eq(UserLog::getLoginType, IsYesNoEnum.NO.getKey())
|
|
|
.eq(UserLog::getMiniType, UserTypeEnum.SERVICE.getKey())
|
|
|
.eq(UserLog::getType, "LOGIN")
|
|
|
.in(!CollectionUtils.isEmpty(companyIds), UserLog::getCompanyWechatId, companyIds)
|
|
|
.between(UserLog::getCreateTime, DateUtil.offsetDay(DateUtil.beginOfDay(new Date()), -1), DateUtil.offsetDay(DateUtil.endOfDay(new Date()), -1)).count();
|
|
|
|
|
|
|
|
|
- Integer allUser = userService.lambdaQuery().eq(User::getType, UserTypeEnum.GENERAL.getKey())
|
|
|
- .in(!CollectionUtils.isEmpty(companyIds), User::getCompanyWechatId, companyIds).count();
|
|
|
+ Integer allUser = adminUserService.lambdaQuery().eq(AdminUser::getStatus, true)
|
|
|
+ .in(!CollectionUtils.isEmpty(companyIds), AdminUser::getCompanyWechatId, companyIds).count();
|
|
|
|
|
|
|
|
|
- Integer allUserLogin = userLogService.lambdaQuery().eq(UserLog::getLoginType, IsYesNoEnum.NO.getKey())
|
|
|
- .eq(UserLog::getMiniType, UserTypeEnum.GENERAL.getKey())
|
|
|
+ Integer allUserLogin = userLogService.lambdaQuery().eq(UserLog::getLoginType, IsYesNoEnum.YES.getKey())
|
|
|
.eq(UserLog::getType, "LOGIN")
|
|
|
.in(!CollectionUtils.isEmpty(companyIds), UserLog::getCompanyWechatId, companyIds)
|
|
|
.between(UserLog::getCreateTime, DateUtil.beginOfDay(new Date()), DateUtil.endOfDay(new Date())).count();
|
|
|
|
|
|
Integer allUserBefore = userLogService.lambdaQuery().eq(UserLog::getLoginType, IsYesNoEnum.YES.getKey())
|
|
|
- .eq(UserLog::getMiniType, UserTypeEnum.GENERAL.getKey())
|
|
|
.eq(UserLog::getType, "LOGIN")
|
|
|
.in(!CollectionUtils.isEmpty(companyIds), UserLog::getCompanyWechatId, companyIds)
|
|
|
.between(UserLog::getCreateTime, DateUtil.offsetDay(DateUtil.beginOfDay(new Date()), -1), DateUtil.offsetDay(DateUtil.endOfDay(new Date()), -1)).count();
|