|
@@ -392,6 +392,17 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
FormData constructFd =tec.formDataMap.get(InterimPaymentCertificate.TBN+ StringPool.COLON+"key_11");
|
|
|
put2FormData(constructFd,StringUtils.number2String(total*0.75,2));
|
|
|
}
|
|
|
+ if(MeterInfo.MB_ZJ.equals(tec.getMeterInfo().getConfig())){
|
|
|
+ /*浙江*/
|
|
|
+ Function<Function<InterimPaymentCertificate,String>,Function<List<InterimPaymentCertificate>,List<Object>>> fc=(f)-> dl->dl.stream().map(InterimPaymentCertificate::getCurrentPeriodPay).flatMap(e->{
|
|
|
+ List<Object> l=IntStream.range(0,5).boxed().map(i->"").collect(Collectors.toList());
|
|
|
+ l.set(0,e);
|
|
|
+ return l.stream();
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ fieldDataFcMap.put(InterimPaymentCertificate.TBN+":key_4",fc.apply(InterimPaymentCertificate::getCurrentPeriodPay));
|
|
|
+ fieldDataFcMap.put(InterimPaymentCertificate.TBN+":key_5",fc.apply(InterimPaymentCertificate::getPreviousPeriodEndPay));
|
|
|
+
|
|
|
+ }
|
|
|
fieldDataFcMap.put(InterimPaymentCertificate.TBN+ StringPool.COLON+"key_9",(List<InterimPaymentCertificate> list)-> Collections.singletonList(list.stream().map(InterimPaymentCertificate::getCurrentPeriodPay).mapToDouble(BaseUtils::obj2DoubleZero).sum()));
|
|
|
/*内容输出*/
|
|
|
putOut();
|
|
@@ -661,10 +672,7 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
});
|
|
|
/*实际完成,累计完成、按月完成*/
|
|
|
List<List<List<Payment>>> all =totalList.stream().map(SubprojectInterimPaymentSummary::getMonthlyCompletion).collect(Collectors.toList());
|
|
|
- /*FormulaUtils.beRelyFrom(fdm,SubprojectInterimPaymentSummary.TBN+":key_22").forEach(e->e.setRepeat(true));
|
|
|
- FormulaUtils.beRelyFrom(fdm,SubprojectInterimPaymentSummary.TBN+":key_23").forEach(e->e.setRepeat(true));
|
|
|
- FormulaUtils.beRelyFrom(fdm,SubprojectInterimPaymentSummary.TBN+":key_24").forEach(e->e.setRepeat(true));*/
|
|
|
- FormulaUtils.beRelyFrom(fdm,SubprojectInterimPaymentSummary.TBN,"key_22,key_23,key_24").forEach(e->e.setRepeat(true));
|
|
|
+ FormulaUtils.beRelyFrom(tec.getFormDataMap(),SubprojectInterimPaymentSummary.TBN,"key_22,key_23,key_24").forEach(e->e.setRepeat(true));
|
|
|
/*每月合计进度*/
|
|
|
List<String> monthlySum= IntStream.range(0,max).boxed().map(month->{
|
|
|
List<Payment> tmp= all.stream().flatMap(row->row.get(month).stream()).collect(Collectors.toList());
|