Commit 6d9d51db authored by 赵啸非's avatar 赵啸非

添加统计子站点

parent 0025dc95
...@@ -146,6 +146,7 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi ...@@ -146,6 +146,7 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
accessEntities = accessService.find(accessQuery).stream().filter(item -> { accessEntities = accessService.find(accessQuery).stream().filter(item -> {
List<AccessSystemEntity> accessSystemList = item.getAccessSystemList(); List<AccessSystemEntity> accessSystemList = item.getAccessSystemList();
//判断排队机或者评价系统是否开通 //判断排队机或者评价系统是否开通
if(ObjectUtils.isEmpty(accessSystemList))return false;
List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList()); List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList());
if(ObjectUtils.isEmpty(collect)){return false;} if(ObjectUtils.isEmpty(collect)){return false;}
return true; return true;
......
...@@ -203,6 +203,7 @@ public class SiteStatTaskImpl implements ITaskExcuteService { ...@@ -203,6 +203,7 @@ public class SiteStatTaskImpl implements ITaskExcuteService {
accessEntities = accessEntities.stream().filter(item -> { accessEntities = accessEntities.stream().filter(item -> {
List<AccessSystemEntity> accessSystemList = item.getAccessSystemList(); List<AccessSystemEntity> accessSystemList = item.getAccessSystemList();
//判断排队机或者评价系统是否开通 //判断排队机或者评价系统是否开通
if(ObjectUtils.isEmpty(accessSystemList))return false;
List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList()); List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList());
if(ObjectUtils.isEmpty(collect)){return false;} if(ObjectUtils.isEmpty(collect)){return false;}
return true; return true;
......
...@@ -200,6 +200,7 @@ public class PhQueueStatController extends BaseCRUDJsonBodyMappingController<PhQ ...@@ -200,6 +200,7 @@ public class PhQueueStatController extends BaseCRUDJsonBodyMappingController<PhQ
List<AccessEntity> accessEntities = accessService.find(accessQuery).stream().filter(item -> { List<AccessEntity> accessEntities = accessService.find(accessQuery).stream().filter(item -> {
List<AccessSystemEntity> accessSystemList = item.getAccessSystemList(); List<AccessSystemEntity> accessSystemList = item.getAccessSystemList();
//判断排队机或者评价系统是否开通 //判断排队机或者评价系统是否开通
if(ObjectUtils.isEmpty(accessSystemList))return false;
List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList()); List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList());
if(ObjectUtils.isEmpty(collect)){return false;} if(ObjectUtils.isEmpty(collect)){return false;}
return true; return true;
......
...@@ -199,6 +199,7 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController< ...@@ -199,6 +199,7 @@ public class PjEvaluateStatController extends BaseCRUDJsonBodyMappingController<
List<AccessEntity> accessEntities = accessService.find(accessQuery).stream().filter(item -> { List<AccessEntity> accessEntities = accessService.find(accessQuery).stream().filter(item -> {
List<AccessSystemEntity> accessSystemList = item.getAccessSystemList(); List<AccessSystemEntity> accessSystemList = item.getAccessSystemList();
//判断排队机或者评价系统是否开通 //判断排队机或者评价系统是否开通
if(ObjectUtils.isEmpty(accessSystemList))return false;
List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList()); List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList());
if(ObjectUtils.isEmpty(collect)){return false;} if(ObjectUtils.isEmpty(collect)){return false;}
return true; return true;
......
...@@ -112,6 +112,7 @@ public class StatController extends BaseCRUDJsonBodyMappingController<StatServic ...@@ -112,6 +112,7 @@ public class StatController extends BaseCRUDJsonBodyMappingController<StatServic
List<AccessEntity> accessEntities = accessService.find(accessQuery).stream().filter(item -> { List<AccessEntity> accessEntities = accessService.find(accessQuery).stream().filter(item -> {
List<AccessSystemEntity> accessSystemList = item.getAccessSystemList(); List<AccessSystemEntity> accessSystemList = item.getAccessSystemList();
//判断排队机或者评价系统是否开通 //判断排队机或者评价系统是否开通
if(ObjectUtils.isEmpty(accessSystemList))return false;
List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList()); List<AccessSystemEntity> collect = accessSystemList.stream().filter(f -> f.getEnabled() == YesNoEnum.YES.getValue()).collect(Collectors.toList());
if(ObjectUtils.isEmpty(collect)){return false;} if(ObjectUtils.isEmpty(collect)){return false;}
return true; return true;
......
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