|
@@ -107,11 +107,16 @@ public class SubprojectInterimPaymentSummary implements DataModel{
|
|
|
|
|
|
public void calculate(List<SubprojectInterimPaymentSummary> data,Integer scale){
|
|
public void calculate(List<SubprojectInterimPaymentSummary> data,Integer scale){
|
|
if(data!=null&&data.size()>0){
|
|
if(data!=null&&data.size()>0){
|
|
-
|
|
|
|
|
|
+ /*合同金额*/
|
|
|
|
+ count(this::setContractMoney,data,SubprojectInterimPaymentSummary::getContractMoney,scale);
|
|
/*本次支付*/
|
|
/*本次支付*/
|
|
count(this::setCurrentPeriodPay,data,SubprojectInterimPaymentSummary::getCurrentPeriodPay,scale);
|
|
count(this::setCurrentPeriodPay,data,SubprojectInterimPaymentSummary::getCurrentPeriodPay,scale);
|
|
/*本次累计支付*/
|
|
/*本次累计支付*/
|
|
count(this::setCurrentPeriodEndPay,data,SubprojectInterimPaymentSummary::getCurrentPeriodEndPay,scale);
|
|
count(this::setCurrentPeriodEndPay,data,SubprojectInterimPaymentSummary::getCurrentPeriodEndPay,scale);
|
|
|
|
+ BigDecimal ra=BaseUtils.str2BigDecimal(this.currentPeriodPay).multiply(new BigDecimal(100)).divide(BaseUtils.str2BigDecimal(this.contractMoney),2,RoundingMode.HALF_UP);
|
|
|
|
+ if(BigDecimal.ZERO.compareTo(ra)<0) {
|
|
|
|
+ setPayRatio(ra.stripTrailingZeros().toPlainString()+"%");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|