将交易记录导出为excel文件
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user