| | |
| | | public ApiResponse<PageData<ApplyDetail>> findPage (@RequestBody PageWrap<ApplyDetailPageDTO> pageWrap) { |
| | | return ApiResponse.success(applyDetailService.findPageForCompany(pageWrap)); |
| | | } |
| | | @ApiOperation("查询全部") |
| | | @PostMapping("/list") |
| | | @RequiresPermissions("business:applydetail:query") |
| | | public ApiResponse<List<ApplyDetail>> findList (@RequestBody ApplyDetail pageWrap) { |
| | | return ApiResponse.success(applyDetailService.findList(pageWrap)); |
| | | } |
| | | @ApiOperation("导出在保人员详单Excel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:applydetail:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<ApplyDetailPageDTO> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(ApplyDetail.class).exportWithFirstAndEnd(applyDetailService.findPageForCompany(pageWrap).getRecords(), pageWrap.getModel().getCompanyName()+"_"+pageWrap.getModel().getSolutionName()+".xlsx","在保人员名单",null, response); |
| | | ExcelExporter.build(ApplyDetail.class).exportWithFirstAndEnd(applyDetailService.findPageForCompany(pageWrap).getRecords(), |
| | | pageWrap.getModel().getSolutionName(),"在保人员名单",null, response); |
| | | } |
| | | |
| | | @ApiOperation("根据ID查询") |