|
@@ -37,7 +37,7 @@ import java.util.stream.IntStream;
|
|
public class ExecutorMeter extends FormulaExecutor {
|
|
public class ExecutorMeter extends FormulaExecutor {
|
|
/* private Function<Long, List<Material>> materialFormFc;*/
|
|
/* private Function<Long, List<Material>> materialFormFc;*/
|
|
private Function<Long, List<Payment>> paymentListFc;
|
|
private Function<Long, List<Payment>> paymentListFc;
|
|
- private Function<Long, List<MidPayItem>> midPayItemListFc;
|
|
|
|
|
|
+ /* private Function<Long, List<MidPayItem>> midPayItemListFc;*/
|
|
private Function<Long, List<InventoryForm>> inventoryFormFc;
|
|
private Function<Long, List<InventoryForm>> inventoryFormFc;
|
|
private Function<Long, List<MeterApply>> meterApplyFc;
|
|
private Function<Long, List<MeterApply>> meterApplyFc;
|
|
private Function<Long, List<StartPayForm>> stayPayFormFc;
|
|
private Function<Long, List<StartPayForm>> stayPayFormFc;
|
|
@@ -493,15 +493,41 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
/*本期实际支付合计计算*/
|
|
/*本期实际支付合计计算*/
|
|
interimPaymentCertificates= new ArrayList<>(paymentCertificateMap.values());
|
|
interimPaymentCertificates= new ArrayList<>(paymentCertificateMap.values());
|
|
/*合同段支付项*/
|
|
/*合同段支付项*/
|
|
- List<MidPayItem> midPayItemList=midPayItemListFc.apply(tec.getContractId());
|
|
|
|
|
|
+ List<MidPayItem> midPayItemList=tec.meterInfo.getMidPayItemList();
|
|
if(Func.isNotEmpty(midPayItemList)){
|
|
if(Func.isNotEmpty(midPayItemList)){
|
|
|
|
+ List<InterimPaymentCertificate> payItemZj=new ArrayList<>();
|
|
|
|
+ if(MeterInfo.MB_ZJ.equals(tec.meterInfo.getConfig())){
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("小计"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("价格调整"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("合计"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("索赔金额"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("违约罚金"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("迟付款利息"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("动员预付款"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("扣回动员预付款"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("材料设备垫付款"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("扣回材料设备垫付款"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("保留金"));
|
|
|
|
+ payItemZj.add(new InterimPaymentCertificate("实际支付"));
|
|
|
|
+ }
|
|
midPayItemList.forEach(e->{
|
|
midPayItemList.forEach(e->{
|
|
InterimPaymentCertificate ipc = paymentCertificateMap.get(e.getPayNumber());
|
|
InterimPaymentCertificate ipc = paymentCertificateMap.get(e.getPayNumber());
|
|
if(ipc==null){
|
|
if(ipc==null){
|
|
- ipc= new InterimPaymentCertificate(e.getPayName());
|
|
|
|
|
|
+ if(MeterInfo.MB_ZJ.equals(tec.meterInfo.getConfig())){
|
|
|
|
+ if((e.getPayName().contains("章")||e.getPayName().contains("暂定"))){
|
|
|
|
+ ipc = new InterimPaymentCertificate(e.getPayName());
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ ipc = new InterimPaymentCertificate(e.getPayName());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(ipc!=null) {
|
|
|
|
+ dataList.add(ipc);
|
|
}
|
|
}
|
|
- dataList.add(ipc);
|
|
|
|
});
|
|
});
|
|
|
|
+ if(payItemZj.size()>0){
|
|
|
|
+ dataList.addAll(payItemZj);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
/*数据获取end*/
|
|
/*数据获取end*/
|
|
double total=dataList.stream().map(InterimPaymentCertificate::getCurrentPeriodPay).mapToDouble(BaseUtils::obj2DoubleZero).sum();
|
|
double total=dataList.stream().map(InterimPaymentCertificate::getCurrentPeriodPay).mapToDouble(BaseUtils::obj2DoubleZero).sum();
|