|
|
@ -70,7 +70,7 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//组织层级数据
|
|
|
|
if (FactConstant.AGENCY.equals(formDTO.getOrgType())) { |
|
|
|
//3.根据组织Id查询组织信息
|
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyAreaInfo(formDTO.getOrgId()); |
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyInfoByAegncyId(formDTO.getOrgId()); |
|
|
|
if (null == agency) { |
|
|
|
//throw new RenException(String.format("根据组织Id未查询到组织信息,组织Id:%s", formDTO.getOrgId()));
|
|
|
|
return resultList; |
|
|
@ -79,12 +79,12 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//区县级、乡镇街道级
|
|
|
|
if ("district".equals(agency.getLevel()) || "street".equals(agency.getLevel())) { |
|
|
|
//4-1.查询过去12个月党建能力、治理能力、服务能力每月总分数据
|
|
|
|
list = factIndexAgencyScoreDao.selectAblityIndex(formDTO); |
|
|
|
list = factIndexAgencyScoreDao.selectAgencyAblityWeightScoreIndex(formDTO); |
|
|
|
|
|
|
|
//社区级
|
|
|
|
} else if ("community".equals(agency.getLevel())) { |
|
|
|
//4-1.查询过去12个月党建能力、治理能力、服务能力每月总分、本级得分、下级得分数据
|
|
|
|
list = factIndexCommunityScoreDao.selectCommunityAblityIndex(formDTO); |
|
|
|
list = factIndexCommunityScoreDao.selectCommunityAblityWeightScore(formDTO); |
|
|
|
} else { |
|
|
|
//throw new RenException(String.format("根据组织Id查询到的组织级别信息错误,组织Id:%s", formDTO.getOrgId()));
|
|
|
|
return resultList; |
|
|
@ -92,7 +92,7 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//网格层级数据
|
|
|
|
} else if (FactConstant.GRID.equals(formDTO.getOrgType())) { |
|
|
|
//5.查询网格过去12个月党建能力、治理能力、服务能力每月总分数据
|
|
|
|
list = factIndexGridScoreDao.selectGridAblityIndex(formDTO); |
|
|
|
list = factIndexGridScoreDao.selectGridAblityWeightScore(formDTO); |
|
|
|
} else { |
|
|
|
throw new RenException(String.format("能力指数查询,orgType类型错误,组织Id:%s,类型Type:%s", formDTO.getOrgId(), formDTO.getOrgType())); |
|
|
|
} |
|
|
@ -172,7 +172,7 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//组织层级数据
|
|
|
|
if (FactConstant.AGENCY.equals(formDTO.getOrgType())) { |
|
|
|
//2.根据组织Id查询组织信息
|
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyAreaInfo(formDTO.getOrgId()); |
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyInfoByAegncyId(formDTO.getOrgId()); |
|
|
|
if (null == agency) { |
|
|
|
//throw new RenException(String.format("根据组织Id未查询到组织信息,组织Id:%s", formDTO.getOrgId()));
|
|
|
|
return resultList; |
|
|
@ -181,11 +181,11 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//区县级、乡镇街道级
|
|
|
|
if ("district".equals(agency.getLevel()) || "street".equals(agency.getLevel())) { |
|
|
|
//3-1.查询当前组织某一月份党建能力、治理能力、服务能力对应的总分、本级分、下级分
|
|
|
|
resultList = factIndexAgencyScoreDao.selectScoreList(formDTO); |
|
|
|
resultList = factIndexAgencyScoreDao.selectAgencyWeightScoreList(formDTO); |
|
|
|
//社区级
|
|
|
|
} else if ("community".equals(agency.getLevel())) { |
|
|
|
//3-1.查询当前组织某一月份党建能力、治理能力、服务能力对应的总分、本级分、下级分
|
|
|
|
resultList = factIndexCommunityScoreDao.selectCommunityScoreList(formDTO); |
|
|
|
resultList = factIndexCommunityScoreDao.selectCommunityWeightScoreList(formDTO); |
|
|
|
} else { |
|
|
|
//throw new RenException(String.format("根据组织Id查询到的组织级别信息错误,组织Id:%s", formDTO.getOrgId()));
|
|
|
|
return resultList; |
|
|
@ -194,7 +194,7 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//4.网格层级数据
|
|
|
|
} else if (FactConstant.GRID.equals(formDTO.getOrgType())) { |
|
|
|
//4-1.查询当前组织某一月份党建能力、治理能力、服务能力对应的总分、本级分、下级分
|
|
|
|
resultList = factIndexGridScoreDao.selectGridScoreList(formDTO); |
|
|
|
resultList = factIndexGridScoreDao.selectGridWeightScoreList(formDTO); |
|
|
|
} else { |
|
|
|
throw new RenException(String.format("按月份查询各项能力分数,orgType类型错误,组织Id:%s,类型Type:%s", formDTO.getOrgId(), formDTO.getOrgType())); |
|
|
|
} |
|
|
@ -220,7 +220,7 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//组织层级数据
|
|
|
|
if (FactConstant.AGENCY.equals(formDTO.getOrgType())) { |
|
|
|
//3.根据组织Id查询组织信息
|
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyAreaInfo(formDTO.getOrgId()); |
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyInfoByAegncyId(formDTO.getOrgId()); |
|
|
|
if (null == agency) { |
|
|
|
//throw new RenException(String.format("根据组织Id未查询到组织信息,组织Id:%s", formDTO.getOrgId()));
|
|
|
|
return resultList; |
|
|
@ -229,12 +229,12 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//区县级、乡镇街道级
|
|
|
|
if ("district".equals(agency.getLevel()) || "street".equals(agency.getLevel())) { |
|
|
|
//4-1.查询过去12个月党建能力、治理能力、服务能力每月总分、本级得分、下级得分数据
|
|
|
|
list = factIndexAgencyScoreDao.selectMonthScoreList(formDTO); |
|
|
|
list = factIndexAgencyScoreDao.selectAgencyMonthWeightScoreList(formDTO); |
|
|
|
|
|
|
|
//社区级
|
|
|
|
} else if ("community".equals(agency.getLevel())) { |
|
|
|
//4-1.查询过去12个月党建能力、治理能力、服务能力每月总分、本级得分、下级得分数据
|
|
|
|
list = factIndexCommunityScoreDao.selectCommunityMonthScoreList(formDTO); |
|
|
|
list = factIndexCommunityScoreDao.selectCommunityMonthWeightScoreList(formDTO); |
|
|
|
} else { |
|
|
|
//throw new RenException(String.format("根据组织Id查询到的组织级别信息错误,组织Id:%s", formDTO.getOrgId()));
|
|
|
|
return resultList; |
|
|
@ -242,7 +242,7 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//网格层级数据
|
|
|
|
} else if (FactConstant.GRID.equals(formDTO.getOrgType())) { |
|
|
|
//5.查询网格过去12个月党建能力、治理能力、服务能力每月总分、本级得分、下级得分数据
|
|
|
|
list = factIndexGridScoreDao.selectGridMonthScoreList(formDTO); |
|
|
|
list = factIndexGridScoreDao.selectGridMonthWeightScoreList(formDTO); |
|
|
|
} else { |
|
|
|
throw new RenException(String.format("能力指数查询,orgType类型错误,组织Id:%s,类型Type:%s", formDTO.getOrgId(), formDTO.getOrgType())); |
|
|
|
} |
|
|
@ -291,7 +291,7 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//组织层级数据
|
|
|
|
if (FactConstant.AGENCY.equals(formDTO.getOrgType())) { |
|
|
|
//2.根据组织Id查询组织信息
|
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyAreaInfo(formDTO.getOrgId()); |
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyInfoByAegncyId(formDTO.getOrgId()); |
|
|
|
if (null == agency) { |
|
|
|
//throw new RenException(String.format("根据组织Id未查询到组织信息,组织Id:%s", formDTO.getOrgId()));
|
|
|
|
return resultList; |
|
|
@ -359,7 +359,7 @@ public class FactIndexServiceImpl implements FactIndexService { |
|
|
|
//组织层级数据
|
|
|
|
if (FactConstant.AGENCY.equals(formDTO.getOrgType())) { |
|
|
|
//3.根据组织Id查询组织信息
|
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyAreaInfo(formDTO.getOrgId()); |
|
|
|
CompartmentResultDTO agency = screenCustomerAgencyDao.getAgencyInfoByAegncyId(formDTO.getOrgId()); |
|
|
|
if (null == agency) { |
|
|
|
//throw new RenException(String.format("查询组织信息失败,组织Id:%s", formDTO.getOrgId()));
|
|
|
|
return resultList; |
|
|
|