|
@@ -148,7 +148,13 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
/*开工预付款支付证书处理*/
|
|
|
this.specialList.add(new StayPayCalc());
|
|
|
}
|
|
|
- this.specialList.stream().filter(Special::ready).forEach(Special::parse);
|
|
|
+ this.specialList.stream().filter(Special::ready).forEach(special->{
|
|
|
+ try{
|
|
|
+ special.parse();
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ });
|
|
|
/**把队列中的DataModel全部转换为FormData(元素)*/
|
|
|
tec.meterInfo.getDelay().forEach(this::dataModel2FormData);
|
|
|
}
|
|
@@ -408,7 +414,10 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
current.setChapterSeq(sc.getItemName());
|
|
|
itemList.add(current);
|
|
|
}else if(v.equals("-100")||v.equals("-101")){
|
|
|
- InterimPayCertificateItem previous = finalPreviousMap.get(k);
|
|
|
+ InterimPayCertificateItem previous =null;
|
|
|
+ if(finalPreviousMap!=null) {
|
|
|
+ previous = finalPreviousMap.get(k);
|
|
|
+ }
|
|
|
InterimPayCertificateItem current = currentMap.computeIfAbsent(k,w->new InterimPayCertificateItem());
|
|
|
sc.setCurrentAmount(current.getCurrentPeriodPay());
|
|
|
if(previous!=null) {
|
|
@@ -739,6 +748,10 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
t.setCurrentPeriodChangeMoney("");
|
|
|
t.setCurrentPeriodEndChangeMoney("");
|
|
|
});
|
|
|
+ RebateIncentiveAdvPay rebateIncentiveAdvPay = new RebateIncentiveAdvPay();
|
|
|
+ payItemZj.stream().filter(t->t.getFormName()!=null&&t.getFormName().contains("小计")).findFirst().ifPresent(t->{
|
|
|
+ rebateIncentiveAdvPay.setSubtotal(t.getCurrentPeriodEndPay());
|
|
|
+ });
|
|
|
dataList.addAll(payItemZj);
|
|
|
/*分行合计列,合计的时候需要计入手填部分*/
|
|
|
fieldGetSet(summaryConfigMap,x->!x.getIsSummary(),InterimPaymentCertificate::getInvertState);
|
|
@@ -750,6 +763,7 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
item.setCurrentPeriodEndPay(sc.getCurrentPeriodEndPay());
|
|
|
});
|
|
|
}
|
|
|
+ FormulaUtils.toFormDataMap(rebateIncentiveAdvPay);
|
|
|
}
|
|
|
}
|
|
|
/*数据获取end*/
|
|
@@ -1049,7 +1063,7 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
}
|
|
|
if(m>2){
|
|
|
/*所有章合计*/
|
|
|
- subtotal(new SubprojectInterimPaymentSummary("所有章合计"),tmp,totalList,tec.getScale());
|
|
|
+ subtotal(new SubprojectInterimPaymentSummary("合计(元)"),tmp,totalList,tec.getScale());
|
|
|
}
|
|
|
dataList.addAll(tmp);
|
|
|
tmp.clear();
|