交易记录下载 返回文件流改为返回文件下载地址

This commit is contained in:
2025-01-27 16:39:19 +08:00
parent 708280ca14
commit 68a9462714
4 changed files with 71 additions and 18 deletions

View File

@@ -211,9 +211,8 @@ public class ConvenientInquiryController {
}
@ApiOperation("下载交易记录")
@GetMapping("/queryTransaction/download")
public void exportTransactionRecords(@RequestParam String params, HttpServletResponse response){
convenientInquiryService.exportTransactionRecords(params, response);
// return Response.success();
@PostMapping("/queryTransaction/download")
public Response<String> exportTransactionRecords(@Valid @RequestBody QueryPaymentInfoDTO queryPaymentInfoDTO, HttpServletResponse response){
return Response.success(convenientInquiryService.exportTransactionRecords(queryPaymentInfoDTO, response));
}
}