|  |  |  | 
|---|
|  |  |  | @RequiresPermissions("business:insuranceapply:query") | 
|---|
|  |  |  | public ApiResponse<PageData<InsuranceApply>> findPage (@RequestBody PageWrap<InsuranceApplyQueryDTO> pageWrap) { | 
|---|
|  |  |  | PageData<InsuranceApply> pageData = insuranceApplyService.findPage(pageWrap); | 
|---|
|  |  |  | pageData.getRecords().forEach(i->{ | 
|---|
|  |  |  | if(i.getSolutionType().equals(Constants.ONE)&&!i.getStatus().equals(Constants.InsuranceApplyStatus.WTB_DONE.getKey())){ | 
|---|
|  |  |  | i.setFee(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | return ApiResponse.success(pageData); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @RequiresPermissions("business:insuranceapply:exportExcel") | 
|---|
|  |  |  | public void exportDetailExcel (@RequestBody  InsuranceApply model, HttpServletResponse response) { | 
|---|
|  |  |  | InsuranceApply insuranceApply =   insuranceApplyService.findDetailForExport(model); | 
|---|
|  |  |  | if(Objects.nonNull(insuranceApply)&&insuranceApply.getSolutionType().equals(Constants.ONE) | 
|---|
|  |  |  | &&!insuranceApply.getStatus().equals(Constants.InsuranceApplyStatus.WTB_DONE.getKey())){ | 
|---|
|  |  |  | insuranceApply.setFee(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ExcelExporter.build(InsuranceApply.class).exportApplyDetail(insuranceApply,  response); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("根据ID查询") | 
|---|
|  |  |  | 
|---|
|  |  |  | @RequiresPermissions("business:insuranceapply:query") | 
|---|
|  |  |  | public ApiResponse<InsuranceApply> findById(@PathVariable Integer id) { | 
|---|
|  |  |  | InsuranceApply insuranceApply = insuranceApplyService.findDetail(id); | 
|---|
|  |  |  | if(Objects.nonNull(insuranceApply)&&insuranceApply.getSolutionType().equals(Constants.ONE)&&!insuranceApply.getStatus().equals(Constants.InsuranceApplyStatus.WTB_DONE.getKey())){ | 
|---|
|  |  |  | insuranceApply.setFee(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return ApiResponse.success(insuranceApply); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("企业签署保单") | 
|---|