|
@@ -11,6 +11,7 @@ import com.platform.dao.entity.preparation.Preparation;
|
|
|
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.rest.log.annotation.SysLog;
|
|
|
import com.platform.service.preparation.PreparationService;
|
|
|
import lombok.AllArgsConstructor;
|
|
@@ -190,6 +191,25 @@ public class PreparationController {
|
|
|
return new R(preparationService.getAllPreparationReport(dto, year, startMonth, endMonth));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @GetMapping("/getAllPreparationReport/export")
|
|
|
+ @SysLog("筹建报表统计导出")
|
|
|
+ public void getAllPreparationReportExport(HttpServletResponse response,PreparationDTO dto, @RequestParam(required = false) Integer year, @RequestParam(required = false) LocalDate startMonth, @RequestParam(required = false) LocalDate endMonth) {
|
|
|
+ List<AllPreparationReportVO> list = preparationService.getAllPreparationReport(dto, year, startMonth, endMonth);
|
|
|
+ ExcelUtil.exportResponseDict(response, AllPreparationReportVO.class, BeanConverterUtil.copyListProperties(list, AllPreparationReportVO.class), "筹建报表统计导出");
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/getPreparationDetailReport/export")
|
|
|
+ @SysLog("筹建报表统计导出")
|
|
|
+ public void getPreparationDetailReport(HttpServletResponse response,PreparationDTO dto, @RequestParam(required = false) Integer year, @RequestParam(required = false) LocalDate startMonth, @RequestParam(required = false) LocalDate endMonth) {
|
|
|
+ List<AllPreparationReportVO> list = preparationService.getAllPreparationReport(dto, year, startMonth, endMonth);
|
|
|
+ List<PreparationVO> preparationVOS = list.get(0).getDetailList();
|
|
|
+ ExcelUtil.exportResponseDict(response, ExportPreparationVO.class, BeanConverterUtil.copyListProperties(preparationVOS, ExportPreparationVO.class), "筹建报表统计导出");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
*/
|