|
|
@@ -85,11 +85,17 @@ public class DefaultDeclaredProjectManage { |
|
|
|
BigDecimal totalAmount = govSuperFinanceAmount |
|
|
|
.add(govOwnFinanceAmount).add(bankLendingAmount).add(haveAmount).add(otherAmount); |
|
|
|
VUtils.isTrue(declareAmount.compareTo(totalAmount) != 0) |
|
|
|
.throwMessage(String.format("申报失败! 申报总金额【{}】 不等于其它申报金额 【{}】",declareAmount,totalAmount)); |
|
|
|
.throwMessage(String.format("申报失败! 申报总金额【%s】 不等于其它申报金额 【%s】",declareAmount,totalAmount)); |
|
|
|
|
|
|
|
//判断 年度计划金额 如果开着的话 |
|
|
|
if(projectInfo.getIsAnnualPlanAmount()){ |
|
|
|
BigDecimal annualPlanAmount = projectInfo.getAnnualPlanAmount(); |
|
|
|
|
|
|
|
VUtils.isTrue(annualPlanAmount.compareTo(BigDecimal.ZERO) <= 0) |
|
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【%s】 不能小于等于0",annualPlanAmount)); |
|
|
|
VUtils.isTrue(annualPlanAmount.compareTo(declareAmount) > 0) |
|
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【%s】 不能大于申报金额 【%s】",annualPlanAmount,declareAmount)); |
|
|
|
|
|
|
|
BigDecimal annualGovSuperAmount = projectInfo.getAnnualPlanGovSuperiorFinanceAmount(); |
|
|
|
BigDecimal annualOwnSuperAmount = projectInfo.getAnnualPlanGovOwnFinanceAmount(); |
|
|
|
BigDecimal annualBankLendingAmount = projectInfo.getAnnualPlanBankLendingAmount(); |
|
|
@@ -98,7 +104,7 @@ public class DefaultDeclaredProjectManage { |
|
|
|
BigDecimal totalAnnual = annualGovSuperAmount |
|
|
|
.add(annualOwnSuperAmount).add(annualBankLendingAmount).add(annualHaveAmount).add(anualOtherAmount); |
|
|
|
VUtils.isTrue(annualPlanAmount.compareTo(totalAnnual) != 0) |
|
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【{}】 不等于其它年度支付金额 【{}】",annualPlanAmount,totalAnnual)); |
|
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【%s】 不等于其它年度支付金额 【%s】",annualPlanAmount,totalAnnual)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@@ -234,9 +240,17 @@ public class DefaultDeclaredProjectManage { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public DeclaredProjectStatisticsPO declaredProjectStatistics(Integer year){ |
|
|
|
//根据提交者的单位 |
|
|
|
public DeclaredProjectStatisticsPO declaredProjectOrgStatistics(Integer year){ |
|
|
|
UserInfoDetails userInfo = LoginUserUtil.loginUserDetail(); |
|
|
|
//查此人建设单位的项目 |
|
|
|
return statisticsService.getOrgStatistics(userInfo.getOrganizationCode(),year); |
|
|
|
} |
|
|
|
|
|
|
|
//根据提交者的区域 他是区管或者超管 |
|
|
|
public DeclaredProjectStatisticsPO declaredProjectRegionStatistics(Integer year){ |
|
|
|
UserInfoDetails userInfo = LoginUserUtil.loginUserDetail(); |
|
|
|
//查此人建设单位的项目 |
|
|
|
return statisticsService.getStatistics(userInfo.getOrganizationCode(),year); |
|
|
|
return statisticsService.getRegionStatistics(userInfo.getRegionCode(),year); |
|
|
|
} |
|
|
|
} |