|
@@ -12,6 +12,7 @@ import com.platform.dao.util.ExcelUtil;
|
|
|
import com.platform.dao.vo.export.preparation.ExportPreparationVO;
|
|
|
import com.platform.dao.vo.query.preparation.PreparationVO;
|
|
|
import com.platform.dao.vo.report.AllPreparationReportVO;
|
|
|
+import com.platform.dao.vo.report.PreparationReportByStatusVO;
|
|
|
import com.platform.rest.log.annotation.SysLog;
|
|
|
import com.platform.service.preparation.PreparationService;
|
|
|
import lombok.AllArgsConstructor;
|
|
@@ -218,4 +219,19 @@ public class PreparationController {
|
|
|
public R getPreparationReportGroupByStatus(PreparationDTO dto, @RequestParam(required = false) Integer year, @RequestParam(required = false) LocalDate startMonth, @RequestParam(required = false) LocalDate endMonth) {
|
|
|
return new R(preparationService.getPreparationReportGroupByStatus(dto, year, startMonth, endMonth));
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/getPreparationReportGroupByStatus/export")
|
|
|
+ @SysLog("筹建类型报表统计导出")
|
|
|
+ public void getPreparationTypeReport(HttpServletResponse response,PreparationDTO dto, @RequestParam(required = false) Integer year, @RequestParam(required = false) LocalDate startMonth, @RequestParam(required = false) LocalDate endMonth) {
|
|
|
+ List<PreparationReportByStatusVO> preparationReportByStatusVOS = preparationService.getPreparationReportGroupByStatus(dto, year, startMonth, endMonth);
|
|
|
+ ExcelUtil.exportResponseDict(response, PreparationReportByStatusVO.class, BeanConverterUtil.copyListProperties(preparationReportByStatusVOS, PreparationReportByStatusVO.class), "筹建类型报表统计导出");
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/getPreparationReportGroupByStatus/detail/export")
|
|
|
+ @SysLog("筹建类型明细报表统计导出")
|
|
|
+ public void getPreparationTypeReport2(HttpServletResponse response,PreparationDTO dto, @RequestParam(required = false) Integer year, @RequestParam(required = false) LocalDate startMonth, @RequestParam(required = false) LocalDate endMonth) {
|
|
|
+ List<PreparationReportByStatusVO> preparationReportByStatusVOS = preparationService.getPreparationReportGroupByStatus(dto, year, startMonth, endMonth);
|
|
|
+ List<PreparationVO> preparationVOS = preparationReportByStatusVOS.get(0).getDetailList();
|
|
|
+ ExcelUtil.exportResponseDict(response, ExportPreparationVO.class, BeanConverterUtil.copyListProperties(preparationVOS, ExportPreparationVO.class), "筹建类型明细报表统计导出");
|
|
|
+ }
|
|
|
}
|