交易记录下载post请求改get请求
This commit is contained in:
@@ -211,9 +211,9 @@ public class ConvenientInquiryController {
|
||||
}
|
||||
|
||||
@ApiOperation("下载交易记录")
|
||||
@PostMapping("/queryTransaction/download")
|
||||
public void exportTransactionRecords(@Valid @RequestBody QueryPaymentInfoDTO queryPaymentInfoDTO, HttpServletResponse response){
|
||||
convenientInquiryService.exportTransactionRecords(queryPaymentInfoDTO, response);
|
||||
@GetMapping("/queryTransaction/download")
|
||||
public void exportTransactionRecords(@RequestParam String params, HttpServletResponse response){
|
||||
convenientInquiryService.exportTransactionRecords(params, response);
|
||||
// return Response.success();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,5 +52,5 @@ public interface ConvenientInquiryService extends IService<Questionnaire> {
|
||||
|
||||
Map<String, List<String>> getCities();
|
||||
|
||||
void exportTransactionRecords(QueryPaymentInfoDTO queryPaymentInfoDTO, HttpServletResponse response);
|
||||
void exportTransactionRecords(String params, HttpServletResponse response);
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ import com.ai.da.model.enums.Language;
|
||||
import com.ai.da.model.vo.*;
|
||||
import com.ai.da.service.*;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
@@ -629,7 +630,9 @@ public class ConvenientInquiryServiceImpl extends ServiceImpl<QuestionnaireMappe
|
||||
}};
|
||||
}
|
||||
|
||||
public void exportTransactionRecords(QueryPaymentInfoDTO queryPaymentInfoDTO, HttpServletResponse response){
|
||||
public void exportTransactionRecords(String params, HttpServletResponse response){
|
||||
QueryPaymentInfoDTO queryPaymentInfoDTO = JSONObject.parseObject(params, QueryPaymentInfoDTO.class);
|
||||
|
||||
// 查询数据总量
|
||||
Long total = paymentInfoMapper.queryPaymentInfoCount(queryPaymentInfoDTO.getPlatform(), queryPaymentInfoDTO.getPayerTotal(),
|
||||
queryPaymentInfoDTO.getType(), queryPaymentInfoDTO.getStatus(),
|
||||
|
||||
Reference in New Issue
Block a user