|
|
@ -297,15 +297,13 @@ public class IcUserDemandRecController { |
|
|
|
* @throws Exception |
|
|
|
*/ |
|
|
|
@PostMapping("analysis-export") |
|
|
|
public Result analysisExport(HttpServletResponse response,@LoginUser TokenDto tokenDto, @RequestBody PageListAnalysisFormDTO formDTO)throws Exception { |
|
|
|
public void analysisExport(HttpServletResponse response,@LoginUser TokenDto tokenDto, @RequestBody PageListAnalysisFormDTO formDTO)throws Exception { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setPageFlag(false); |
|
|
|
PageData<DemandRecResultDTO> res=icUserDemandRecService.pageListAnalysis(formDTO); |
|
|
|
if (!CollectionUtils.isEmpty(res.getList())) { |
|
|
|
ExcelUtils.exportExcelToTarget(response, null, res.getList(), DemandRecExcelResultDTO.class); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|