|
@ -71,10 +71,9 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
formDTO.setDateId(format.format(yesterday)); |
|
|
formDTO.setDateId(format.format(yesterday)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//0.判断level是否有值,有值判断areaCode是否有值,没值直接用agencyId查数据,有值查询不是当前agencyId对应客户的areaCode的下级组织列表
|
|
|
//0.根据组织Id查询是否存在子客户,存在的按areaCode查询当前客户之外的客户组织列表
|
|
|
if(StringUtils.isNotBlank(formDTO.getLevel())&&!"community".equals(formDTO.getLevel())&&StringUtils.isNotBlank(formDTO.getAreaCode())){ |
|
|
agencyList = indexService.getAgencyIdsByAgencyId(formDTO.getAgencyId()); |
|
|
agencyList = indexService.getAgencyByAreaCodeAgencyId(formDTO.getAgencyId(), formDTO.getAreaCode()); |
|
|
agencyList.add(formDTO.getAgencyId()); |
|
|
} |
|
|
|
|
|
agencyList.add(formDTO.getAgencyId()); |
|
|
agencyList.add(formDTO.getAgencyId()); |
|
|
|
|
|
|
|
|
//1.查询组织下注册用户最新日统计数据【只查询注册用户的统计数据,不涉及参与用户的】
|
|
|
//1.查询组织下注册用户最新日统计数据【只查询注册用户的统计数据,不涉及参与用户的】
|
|
@ -290,8 +289,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
formDTO.setType("user"); |
|
|
formDTO.setType("user"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//1.查询直属下级组织列表,有areaCode的按areaCode查,没有的按agencyId查
|
|
|
//1.查询直属下级组织列表,有子客户的按areaCode查没有的按agencyId查
|
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyList(formDTO.getAgencyId(), formDTO.getAreaCode()); |
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyListByAgency(formDTO.getAgencyId()); |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
@ -428,8 +427,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
formDTO.setType("group"); |
|
|
formDTO.setType("group"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//1.查询直属下级组织列表,有areaCode的按areaCode查,没有的按agencyId查
|
|
|
//1.查询直属下级组织列表,有子客户的按areaCode查没有的按agencyId查
|
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyList(formDTO.getAgencyId(), formDTO.getAreaCode()); |
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyListByAgency(formDTO.getAgencyId()); |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
@ -563,8 +562,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
formDTO.setType("topic"); |
|
|
formDTO.setType("topic"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//1.查询直属下级组织列表,有areaCode的按areaCode查,没有的按agencyId查
|
|
|
//1.查询直属下级组织列表,有子客户的按areaCode查没有的按agencyId查
|
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyList(formDTO.getAgencyId(), formDTO.getAreaCode()); |
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyListByAgency(formDTO.getAgencyId()); |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
@ -752,8 +751,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
formDTO.setType("issue"); |
|
|
formDTO.setType("issue"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//1.查询直属下级组织列表,有areaCode的按areaCode查,没有的按agencyId查
|
|
|
//1.查询直属下级组织列表,有子客户的按areaCode查没有的按agencyId查
|
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyList(formDTO.getAgencyId(), formDTO.getAreaCode()); |
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyListByAgency(formDTO.getAgencyId()); |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
@ -894,8 +893,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
formDTO.setType("project"); |
|
|
formDTO.setType("project"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//1.查询直属下级组织列表,有areaCode的按areaCode查,没有的按agencyId查
|
|
|
//1.查询直属下级组织列表,有子客户的按areaCode查没有的按agencyId查
|
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyList(formDTO.getAgencyId(), formDTO.getAreaCode()); |
|
|
List<ScreenCustomerAgencyDTO> subAgencyList = indexService.getSubAgencyListByAgency(formDTO.getAgencyId()); |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
if (subAgencyList.size() < NumConstant.ONE) { |
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
|