package cn.cslg.pas.controller; import cn.cslg.pas.common.core.base.Constants; import cn.cslg.pas.common.model.request.StringRequest; import cn.cslg.pas.common.utils.Response; import cn.cslg.pas.service.ReportExportService; import cn.cslg.pas.service.business.CommonService; import io.swagger.v3.oas.annotations.Operation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @Slf4j @RequestMapping(Constants.API_XiaoSHI + "/reportExport") @RestController public class ReportExportController { @Autowired private ReportExportService reportExportService; @Autowired private CommonService commonService; @Operation(summary = "导出报告") @PostMapping("/export") public Response queryPatentProject(@RequestBody StringRequest stringRequest) throws Exception { reportExportService.exportReport(1,1); return Response.success("records"); } }