|
|
|
@ -6,6 +6,7 @@ import com.daqing.financial.guarantee.model.request.AlCollectionRequest; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.AlCollectionListResponse; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.AlCollectionResponse; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.MoreOverdueDetailResponse; |
|
|
|
|
import com.daqing.financial.guarantee.model.response.OverdueDetailResponse; |
|
|
|
|
import com.daqing.financial.guarantee.service.IAlCollectionService; |
|
|
|
|
import com.daqing.framework.domain.guarantee.AlCollection; |
|
|
|
|
import com.daqing.framework.model.response.ResponseResult; |
|
|
|
@ -15,9 +16,10 @@ import io.swagger.annotations.ApiParam; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import javax.validation.Valid; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.io.*; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -62,7 +64,7 @@ public class AlCollectionController { |
|
|
|
|
* 催收时展示的详情 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/overdue/detail") |
|
|
|
|
@ApiOperation(value = "催收时展示的详情", notes = "催收时展示的详情") |
|
|
|
|
@ApiOperation(value = "催收时展示的详情", notes = "催收时展示的详情", response = OverdueDetailResponse.class) |
|
|
|
|
public ResponseResult overdueDetail(@RequestParam("insuranceId") Integer insuranceId) { |
|
|
|
|
|
|
|
|
|
return ResponseResult.SUCCESS(alCollectionService.overdueDetail(insuranceId)); |
|
|
|
@ -103,8 +105,8 @@ public class AlCollectionController { |
|
|
|
|
* 催收列表导出 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation(value = "催收列表导出", notes = "催收列表导出") |
|
|
|
|
@PostMapping("/collection/list/export/excel") |
|
|
|
|
public ResponseResult collectionListExportExcel(@RequestBody List<Integer> ids, HttpServletResponse response) throws IOException { |
|
|
|
|
@GetMapping("/collection/list/export/excel") |
|
|
|
|
public ResponseResult collectionListExportExcel(@RequestParam("ids") List<Integer> ids, HttpServletResponse response) throws IOException { |
|
|
|
|
|
|
|
|
|
alCollectionService.collectionListExportExcel(ids, response); |
|
|
|
|
return ResponseResult.SUCCESS(); |
|
|
|
|