将交易记录导出为excel文件

This commit is contained in:
2025-01-24 13:26:53 +08:00
parent bdfa249c2e
commit 46f37942d2
5 changed files with 158 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Nullable;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.text.SimpleDateFormat;
import java.util.*;
@@ -208,4 +209,11 @@ public class ConvenientInquiryController {
public Response<Map<String, List<String>>> getCities(){
return Response.success(convenientInquiryService.getCities());
}
@ApiOperation("下载交易记录")
@PostMapping("/exportTransactionRecords")
public void exportTransactionRecords(@Valid @RequestBody QueryPaymentInfoDTO queryPaymentInfoDTO, HttpServletResponse response){
convenientInquiryService.exportTransactionRecords(queryPaymentInfoDTO, response);
// return Response.success();
}
}