|
@@ -516,9 +516,14 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
/*本期材料*/
|
|
|
List<MaterialAdjust> materialAdjustList=tec.meterInfo.getMaterialAdjustListMap().get(MeterInfo.CUR);
|
|
|
if(materialAdjustList.size()>0){
|
|
|
+ /*期号*/
|
|
|
+ String qh="";
|
|
|
+ if(tec.periodInfo.getPayNumber()!=null) {
|
|
|
+ qh=tec.periodInfo.getPayNumber().split("-")[1];
|
|
|
+ }
|
|
|
for(MaterialAdjust mad:materialAdjustList){
|
|
|
MaterialPriceDifferential mpd = new MaterialPriceDifferential();
|
|
|
- mpd.setPeriodNumber(tec.periodInfo.getPeriodNumber());
|
|
|
+ mpd.setPeriodNumber(qh);
|
|
|
mpd.setName(mad.getMaterialName());
|
|
|
mpd.setUnit(mad.getUnit());
|
|
|
mpd.setQuantity(mad.getAdjustTotal().toPlainString());
|
|
@@ -1247,7 +1252,7 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
/*分行合计列,合计的时候需要计入手填部分*/
|
|
|
fieldGetSet(x->!x.getIsSummary(),InterimPaymentCertificate::getInvertState);
|
|
|
InterimPaymentCertificate finalBlj = blj;
|
|
|
- dataList.stream().filter(e-> "合计".equals(e.getChapterSeq())).findFirst().ifPresent(t->{
|
|
|
+ dataList.stream().filter(e-> "小计".equals(e.getChapterSeq())).findFirst().ifPresent(t->{
|
|
|
finalBlj.setCurrentPeriodPay(StringUtils.number2String(multiFc.apply(t.getCurrentPeriodPay(),"0.1"),0));
|
|
|
if(BaseUtils.obj2DoubleZero(t.getPreviousPeriodEndPay())>0) {
|
|
|
finalBlj.setPreviousPeriodEndPay(StringUtils.number2String(multiFc.apply(t.getPreviousPeriodEndPay(), "0.1"),0));
|
|
@@ -1280,6 +1285,9 @@ public class ExecutorMeter extends FormulaExecutor {
|
|
|
/*排序*/
|
|
|
List<String> indexSort =dataList.stream().map(InterimPaymentCertificate::getChapterSeq).collect(Collectors.toList());
|
|
|
itemList.forEach(e->{
|
|
|
+ e.setContractAmount(StringUtils.number2String(e.getContractAmount(),0));
|
|
|
+ e.setRevisedTotal(StringUtils.number2String(e.getRevisedTotal(),0));
|
|
|
+ e.setRevisedAmount(StringUtils.number2String(e.getRevisedAmount(),0));
|
|
|
e.setCertificateId(tec.getReportId());
|
|
|
e.setSort(indexSort.indexOf(e.getChapterSeq()));
|
|
|
});
|