| | |
| | | return ApiResponse.success(applyDetailService.findPageForCompany(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导出Excel") |
| | | @ApiOperation("列表查询") |
| | | @PostMapping("/findList") |
| | | @RequiresPermissions("business:applydetail:query") |
| | | public ApiResponse<List<ApplyDetail>> findList (@RequestBody ApplyDetailPageDTO applyDetailPageDTO) { |
| | | return ApiResponse.success(applyDetailService.findListForCompany(applyDetailPageDTO)); |
| | | } |
| | | |
| | | @ApiOperation("导出在保人员详单Excel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:applydetail:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<ApplyDetailPageDTO> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(ApplyDetail.class).export(applyDetailService.findPageForCompany(pageWrap).getRecords(), "投保申请明细信息表", response); |
| | | //List<T> data, String fileName,String first,String end, HttpServletResponse response |
| | | ExcelExporter.build(ApplyDetail.class).exportWithFirstAndEnd(applyDetailService.findPageForCompany(pageWrap).getRecords(), pageWrap.getModel().getSolutionName()+".xlsx","在保人员名单",null, response); |
| | | } |
| | | |
| | | @ApiOperation("根据ID查询") |