|
@@ -392,17 +392,6 @@ 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();
|
|
@@ -468,6 +457,17 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
summary.setPayRatioA(ratioFc.apply(summary.getCurrentPeriodEndPay(),summary.getContractAmount()));
|
|
|
summary.setPayRatioB(ratioFc.apply(summary.getCurrentPeriodEndPay(),summary.getRevisedAmount()));
|
|
|
dataList.add(summary);
|
|
|
+
|
|
|
+ if(MeterInfo.MB_ZJ.equals(tec.getMeterInfo().getConfig())){
|
|
|
+ /*浙江*/
|
|
|
+ Function<Function<InterimPaymentSummary,String>,Function<List<InterimPaymentSummary>,List<Object>>> fc=(f)-> dl->dl.stream().map(f).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(InterimPaymentSummary.TBN+":key_11",fc.apply(InterimPaymentSummary::getPreviousPeriodEndPay));
|
|
|
+ fieldDataFcMap.put(InterimPaymentSummary.TBN+":key_6",fc.apply(InterimPaymentSummary::getCurrentPeriodEndPay));
|
|
|
+ }
|
|
|
/*内容输出*/
|
|
|
putOut();
|
|
|
}
|