|
|
@@ -86,16 +86,19 @@ public class DefaultDeclaredProjectManage { |
|
|
|
VUtils.isTrue(declareAmount.compareTo(totalAmount) != 0) |
|
|
|
.throwMessage(String.format("申报失败! 申报总金额【{}】 不等于其它申报金额 【{}】",declareAmount,totalAmount)); |
|
|
|
|
|
|
|
BigDecimal annualPlanAmount = projectInfo.getAnnualPlanAmount(); |
|
|
|
BigDecimal annualGovSuperAmount = projectInfo.getAnnualPlanGovSuperiorFinanceAmount(); |
|
|
|
BigDecimal annualOwnSuperAmount = projectInfo.getAnnualPlanGovOwnFinanceAmount(); |
|
|
|
BigDecimal annualBankLendingAmount = projectInfo.getAnnualPlanBankLendingAmount(); |
|
|
|
BigDecimal annualHaveAmount = projectInfo.getAnnualPlanHaveAmount(); |
|
|
|
BigDecimal anualOtherAmount = projectInfo.getAnnualPlanOtherAmount(); |
|
|
|
BigDecimal totalAnnual = annualGovSuperAmount |
|
|
|
.add(annualOwnSuperAmount).add(annualBankLendingAmount).add(annualHaveAmount).add(anualOtherAmount); |
|
|
|
VUtils.isTrue(annualPlanAmount.compareTo(totalAnnual) != 0) |
|
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【{}】 不等于其它年度支付金额 【{}】",annualPlanAmount,totalAnnual)); |
|
|
|
//判断 年度计划金额 如果开着的话 |
|
|
|
if(projectInfo.getIsAnnualPlanAmount()){ |
|
|
|
BigDecimal annualPlanAmount = projectInfo.getAnnualPlanAmount(); |
|
|
|
BigDecimal annualGovSuperAmount = projectInfo.getAnnualPlanGovSuperiorFinanceAmount(); |
|
|
|
BigDecimal annualOwnSuperAmount = projectInfo.getAnnualPlanGovOwnFinanceAmount(); |
|
|
|
BigDecimal annualBankLendingAmount = projectInfo.getAnnualPlanBankLendingAmount(); |
|
|
|
BigDecimal annualHaveAmount = projectInfo.getAnnualPlanHaveAmount(); |
|
|
|
BigDecimal anualOtherAmount = projectInfo.getAnnualPlanOtherAmount(); |
|
|
|
BigDecimal totalAnnual = annualGovSuperAmount |
|
|
|
.add(annualOwnSuperAmount).add(annualBankLendingAmount).add(annualHaveAmount).add(anualOtherAmount); |
|
|
|
VUtils.isTrue(annualPlanAmount.compareTo(totalAnnual) != 0) |
|
|
|
.throwMessage(String.format("申报失败! 年度支付总金额【{}】 不等于其它年度支付金额 【{}】",annualPlanAmount,totalAnnual)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public ProcessInstanceUserDto buildUser(Long userId){ |
|
|
|