|
@@ -85,16 +85,16 @@ public class DefaultDeclaredProjectManage { |
|
|
BigDecimal totalAmount = govSuperFinanceAmount |
|
|
BigDecimal totalAmount = govSuperFinanceAmount |
|
|
.add(govOwnFinanceAmount).add(bankLendingAmount).add(haveAmount).add(otherAmount); |
|
|
.add(govOwnFinanceAmount).add(bankLendingAmount).add(haveAmount).add(otherAmount); |
|
|
VUtils.isTrue(declareAmount.compareTo(totalAmount) != 0) |
|
|
VUtils.isTrue(declareAmount.compareTo(totalAmount) != 0) |
|
|
.throwMessage(String.format("申报失败! 申报总金额【{}】 不等于其它申报金额 【{}】",declareAmount,totalAmount)); |
|
|
|
|
|
|
|
|
.throwMessage(String.format("申报失败! 申报总金额【%s】 不等于其它申报金额 【%s】",declareAmount,totalAmount)); |
|
|
|
|
|
|
|
|
//判断 年度计划金额 如果开着的话 |
|
|
//判断 年度计划金额 如果开着的话 |
|
|
if(projectInfo.getIsAnnualPlanAmount()){ |
|
|
if(projectInfo.getIsAnnualPlanAmount()){ |
|
|
BigDecimal annualPlanAmount = projectInfo.getAnnualPlanAmount(); |
|
|
BigDecimal annualPlanAmount = projectInfo.getAnnualPlanAmount(); |
|
|
|
|
|
|
|
|
VUtils.isTrue(annualPlanAmount.compareTo(BigDecimal.ZERO) <= 0) |
|
|
VUtils.isTrue(annualPlanAmount.compareTo(BigDecimal.ZERO) <= 0) |
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【{}】 不能小于等于0",annualPlanAmount)); |
|
|
|
|
|
|
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【%s】 不能小于等于0",annualPlanAmount)); |
|
|
VUtils.isTrue(annualPlanAmount.compareTo(declareAmount) > 0) |
|
|
VUtils.isTrue(annualPlanAmount.compareTo(declareAmount) > 0) |
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【{}】 不能大于申报金额 【{}】",annualPlanAmount,declareAmount)); |
|
|
|
|
|
|
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【%s】 不能大于申报金额 【%s】",annualPlanAmount,declareAmount)); |
|
|
|
|
|
|
|
|
BigDecimal annualGovSuperAmount = projectInfo.getAnnualPlanGovSuperiorFinanceAmount(); |
|
|
BigDecimal annualGovSuperAmount = projectInfo.getAnnualPlanGovSuperiorFinanceAmount(); |
|
|
BigDecimal annualOwnSuperAmount = projectInfo.getAnnualPlanGovOwnFinanceAmount(); |
|
|
BigDecimal annualOwnSuperAmount = projectInfo.getAnnualPlanGovOwnFinanceAmount(); |
|
@@ -104,7 +104,7 @@ public class DefaultDeclaredProjectManage { |
|
|
BigDecimal totalAnnual = annualGovSuperAmount |
|
|
BigDecimal totalAnnual = annualGovSuperAmount |
|
|
.add(annualOwnSuperAmount).add(annualBankLendingAmount).add(annualHaveAmount).add(anualOtherAmount); |
|
|
.add(annualOwnSuperAmount).add(annualBankLendingAmount).add(annualHaveAmount).add(anualOtherAmount); |
|
|
VUtils.isTrue(annualPlanAmount.compareTo(totalAnnual) != 0) |
|
|
VUtils.isTrue(annualPlanAmount.compareTo(totalAnnual) != 0) |
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【{}】 不等于其它年度支付金额 【{}】",annualPlanAmount,totalAnnual)); |
|
|
|
|
|
|
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【%s】 不等于其它年度支付金额 【%s】",annualPlanAmount,totalAnnual)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|