|
@ -1235,5 +1235,96 @@ public class HuzhouProjectinfoServiceImpl extends ServiceImpl<HuzhouProjectinfoM |
|
|
}); |
|
|
}); |
|
|
return unitedTechnicalReviewList; |
|
|
return unitedTechnicalReviewList; |
|
|
} |
|
|
} |
|
|
|
|
|
public CountNumberOV countTotalNumber(){ |
|
|
|
|
|
int total = 0; |
|
|
|
|
|
int cityNum = 0; |
|
|
|
|
|
int countryNum = 0; |
|
|
|
|
|
HuzhouProjectinfo projectInfo = new HuzhouProjectinfo(); |
|
|
|
|
|
ProjectInfoAuthSelect projectInfoAuthSelect = CommonUtils.setGetProjectInfoAuth(projectInfo); |
|
|
|
|
|
List<HuzhouProjectinfoOV> projectinfoOVList = projectinfoMapper.getProjectAndChildInfoPageList(projectInfoAuthSelect); |
|
|
|
|
|
if(projectinfoOVList.size()>0){ |
|
|
|
|
|
total=projectinfoOVList.size(); |
|
|
|
|
|
cityNum=projectinfoOVList.stream().filter(x->x.getAdminDivision().equals("市本级")).collect(Collectors.toList()).size(); |
|
|
|
|
|
countryNum=total-cityNum; |
|
|
|
|
|
} |
|
|
|
|
|
CountNumberOV result=new CountNumberOV(); |
|
|
|
|
|
result.setTotal(total); |
|
|
|
|
|
result.setCityNum(cityNum); |
|
|
|
|
|
result.setCountyNum(countryNum); |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
public CountNumberOV countStoragedNumber(){ |
|
|
|
|
|
CountNumberOV result = countNumber("1"); |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
public CountNumberOV countSupportingNumber(){ |
|
|
|
|
|
CountNumberOV result = countNumber("2"); |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
public CountNumberOV countNumber(String type){ |
|
|
|
|
|
int total=0; |
|
|
|
|
|
int cityNum=0; |
|
|
|
|
|
int countryNum=0; |
|
|
|
|
|
HuzhouProjectinfo projectInfo = new HuzhouProjectinfo(); |
|
|
|
|
|
//入库项目:1,配套项目:2
|
|
|
|
|
|
projectInfo.setType(type); |
|
|
|
|
|
ProjectInfoAuthSelect projectInfoAuthSelect = CommonUtils.setGetProjectInfoAuth(projectInfo); |
|
|
|
|
|
List<HuzhouProjectinfoOV> projectinfoOVList = projectinfoMapper.getProjectAndChildInfoPageList(projectInfoAuthSelect); |
|
|
|
|
|
if(projectinfoOVList.size()>0){ |
|
|
|
|
|
total=projectinfoOVList.size(); |
|
|
|
|
|
cityNum=projectinfoOVList.stream().filter(x->x.getAdminDivision().equals("市本级")).collect(Collectors.toList()).size(); |
|
|
|
|
|
countryNum=total-cityNum; |
|
|
|
|
|
} |
|
|
|
|
|
CountNumberOV result=new CountNumberOV(); |
|
|
|
|
|
result.setTotal(total); |
|
|
|
|
|
result.setCityNum(cityNum); |
|
|
|
|
|
result.setCountyNum(countryNum); |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public FoundByTypeOV countStoragedFound(){ |
|
|
|
|
|
FoundByTypeOV result = countFoundByType("1"); |
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
public FoundByTypeOV countSupportingFound(){ |
|
|
|
|
|
FoundByTypeOV result = countFoundByType("2"); |
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
public FoundByTypeOV countFoundByType(String type){ |
|
|
|
|
|
BigDecimal defVal = new BigDecimal("0.00"); |
|
|
|
|
|
BigDecimal totalAmount = new BigDecimal("0.00"); |
|
|
|
|
|
BigDecimal totalCentral = new BigDecimal("0.00"); |
|
|
|
|
|
BigDecimal totalProvincial = new BigDecimal("0.00"); |
|
|
|
|
|
//补充区级资金、市级资金、自筹资金
|
|
|
|
|
|
BigDecimal totalCity = new BigDecimal("0.00"); |
|
|
|
|
|
BigDecimal totalCounty = new BigDecimal("0.00"); |
|
|
|
|
|
BigDecimal totalSelf = new BigDecimal("0.00"); |
|
|
|
|
|
HuzhouProjectinfo projectInfo = new HuzhouProjectinfo(); |
|
|
|
|
|
//入库项目:1,配套项目:2
|
|
|
|
|
|
projectInfo.setType(type); |
|
|
|
|
|
ProjectInfoAuthSelect projectInfoAuthSelect = CommonUtils.setGetProjectInfoAuth(projectInfo); |
|
|
|
|
|
List<HuzhouProjectinfoOV> projectinfoOVList = projectinfoMapper.getProjectAndChildInfoPageList(projectInfoAuthSelect); |
|
|
|
|
|
if (projectinfoOVList.size() > 0) { |
|
|
|
|
|
List<String> projectIds = projectinfoOVList.stream().map(x -> x.getId()).collect(Collectors.toList()); |
|
|
|
|
|
Map<String, BigDecimal> totalMap = projectinfoMapper.getTotalByProjectIds(projectIds); |
|
|
|
|
|
totalAmount = totalMap != null ? totalMap.get("totalAcount") : defVal; |
|
|
|
|
|
totalCentral = totalMap != null ? totalMap.get("centralAcount") : defVal; |
|
|
|
|
|
totalProvincial = totalMap != null ? totalMap.get("provincialAcount") : defVal; |
|
|
|
|
|
//补充区级资金、市级资金、自筹资金
|
|
|
|
|
|
totalCity = totalMap != null ? totalMap.get("cityAcount") : defVal; |
|
|
|
|
|
totalCounty = totalMap != null ? totalMap.get("countyAcount") : defVal; |
|
|
|
|
|
totalSelf = totalMap != null ? totalMap.get("selfAcount") : defVal; |
|
|
|
|
|
} |
|
|
|
|
|
FoundByTypeOV result=new FoundByTypeOV(); |
|
|
|
|
|
result.setTotalMoney(totalAmount); |
|
|
|
|
|
result.setTotalCentral(totalCentral); |
|
|
|
|
|
result.setTotalProvincial(totalProvincial); |
|
|
|
|
|
result.setTotalCity(totalCity); |
|
|
|
|
|
result.setTotalCounty(totalCounty); |
|
|
|
|
|
result.setTotalSelf(totalSelf); |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|