| | |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:applydetail:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<ApplyDetailPageDTO> pageWrap, HttpServletResponse response) { |
| | | pageWrap.getModel().setIsExcel(Constants.ONE); |
| | | PageData<ApplyDetail> pageData = applyDetailService.findPageForCompany(pageWrap); |
| | | pageData.getRecords().forEach(i->{ |
| | | if(i.getSolutionType().equals(Constants.ONE)&&!i.getStatus().equals(Constants.InsuranceApplyStatus.WTB_DONE.getKey())){ |
| | | i.setFee(BigDecimal.ZERO); |
| | | } |
| | | }); |
| | | ExcelExporter.build(ApplyDetail.class).exportWithFirstAndEnd(pageData.getRecords(), pageWrap.getModel().getSolutionName()+".xlsx","在保人员名单",null, response); |
| | | ExcelExporter.build(ApplyDetail.class).exportWithSheetAndFirstAndEnd(pageData.getRecords(), pageWrap.getModel().getSolutionName()+".xlsx","《"+pageWrap.getModel().getSolutionName()+"》"+"保单人员信息",null, "保单人员",response); |
| | | } |
| | | |
| | | @ApiOperation("根据ID查询") |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation("查询人员可报案数据") |
| | | @GetMapping("/getMemberSettleClaimsList") |
| | | public ApiResponse<List<ApplyDetail>> getMemberSettleClaimsList(@RequestParam Integer memberId) { |
| | | return ApiResponse.success(applyDetailService.getMemberSettleClaimsList(memberId)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |