|
|
|
@ -3,21 +3,14 @@ package com.daqing.financial.guarantee.controller; |
|
|
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.model.request.*; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.LoanNoticeListResponse; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.PaymentConfirmationListResponse; |
|
|
|
|
import com.daqing.financial.guarantee.service.IDgLoanNoticeService; |
|
|
|
|
import com.daqing.financial.guarantee.service.impl.DgLoanNoticeServiceImpl; |
|
|
|
|
import com.daqing.framework.model.response.ResponseResult; |
|
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
|
import com.daqing.framework.utils.excel.EasyExcelUtil; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.io.IOException; |
|
|
|
@ -48,17 +41,13 @@ public class DgLoanNoticeController { |
|
|
|
|
return new ResponseResult<PageUtils>().SUCCESS(data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "导出放款通知列表数据") |
|
|
|
|
@PostMapping("/loanNoticeListExport") |
|
|
|
|
@GetMapping("/loanNoticeListExport") |
|
|
|
|
public void loanNoticeListExport( |
|
|
|
|
@ApiParam(name = "loanNoticeListRequest", value = "放款通知列表数据", required = true) |
|
|
|
|
@RequestBody LoanNoticeListRequest loanNoticeListRequest, HttpServletResponse response){ |
|
|
|
|
//获取放款通知列表数据
|
|
|
|
|
List<LoanNoticeListResponse> loanNoticeListResponseList = loanNoticeListRequest.getLoanNoticeListResponseList(); |
|
|
|
|
@ApiParam(name = "ids", value = "多个id", required = true) |
|
|
|
|
@RequestParam("ids") List<String> ids, HttpServletResponse response){ |
|
|
|
|
try { |
|
|
|
|
//导出excel文件
|
|
|
|
|
EasyExcelUtil.download(response, LoanNoticeListResponse.class, loanNoticeListResponseList,"放款通知列表","第一页"); |
|
|
|
|
loanNoticeService.batchExport(response,ids); |
|
|
|
|
} catch (IOException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|