|
@@ -247,12 +247,15 @@ public class PreparationController {
|
|
throw new BusinessException("系统出错,请联系管理员!");
|
|
throw new BusinessException("系统出错,请联系管理员!");
|
|
}
|
|
}
|
|
BigDecimal totalFee = new BigDecimal(0);
|
|
BigDecimal totalFee = new BigDecimal(0);
|
|
|
|
+ BigDecimal actualFee = new BigDecimal(0);
|
|
for (PreparationVO vo:preparationVOS){
|
|
for (PreparationVO vo:preparationVOS){
|
|
totalFee = totalFee.add(vo.getFee());
|
|
totalFee = totalFee.add(vo.getFee());
|
|
|
|
+ actualFee = actualFee.add(vo.getActualFee()==null?new BigDecimal(0):vo.getActualFee());
|
|
}
|
|
}
|
|
PreparationVO preparationVO = new PreparationVO();
|
|
PreparationVO preparationVO = new PreparationVO();
|
|
preparationVO.setFee(totalFee);
|
|
preparationVO.setFee(totalFee);
|
|
preparationVO.setId("费用汇总");
|
|
preparationVO.setId("费用汇总");
|
|
|
|
+ preparationVO.setActualFee(actualFee);
|
|
preparationVOS.add(preparationVO);
|
|
preparationVOS.add(preparationVO);
|
|
ExcelUtil.exportResponseDict(response, ExportPreparationVO.class, BeanConverterUtil.copyListProperties(preparationVOS, ExportPreparationVO.class), "建筑物报表统计导出");
|
|
ExcelUtil.exportResponseDict(response, ExportPreparationVO.class, BeanConverterUtil.copyListProperties(preparationVOS, ExportPreparationVO.class), "建筑物报表统计导出");
|
|
}
|
|
}
|