|
@@ -22,6 +22,7 @@ import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.time.LocalDate;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
@@ -242,9 +243,18 @@ public class PreparationController {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if (preparationVOS.size() == 0){
|
|
|
throw new BusinessException("系统出错,请联系管理员!");
|
|
|
}
|
|
|
+ BigDecimal totalFee = new BigDecimal(0);
|
|
|
+ for (PreparationVO vo:preparationVOS){
|
|
|
+ totalFee = totalFee.add(vo.getFee());
|
|
|
+ }
|
|
|
+ PreparationVO preparationVO = new PreparationVO();
|
|
|
+ preparationVO.setFee(totalFee);
|
|
|
+ preparationVO.setId("费用汇总");
|
|
|
+ preparationVOS.add(preparationVO);
|
|
|
ExcelUtil.exportResponseDict(response, ExportPreparationVO.class, BeanConverterUtil.copyListProperties(preparationVOS, ExportPreparationVO.class), "筹建报表统计导出");
|
|
|
}
|
|
|
|