|  |  | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | import com.doumee.dao.business.dto.CountCyclePriceDTO; | 
 |  |  | import com.doumee.dao.business.dto.InsuranceApplyOptDTO; | 
 |  |  | import com.doumee.dao.business.dto.InsuranceApplyQueryDTO; | 
 |  |  | import com.doumee.dao.business.model.InsuranceApply; | 
 |  |  | import com.doumee.dao.business.vo.CountCyclePriceVO; | 
 |  |  | import com.doumee.service.business.InsuranceApplyService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | 
 |  |  |     @RequiresPermissions("business:insuranceapply:create") | 
 |  |  |     public ApiResponse create(@RequestBody InsuranceApply insuranceApply) { | 
 |  |  |         return ApiResponse.success(insuranceApplyService.create(insuranceApply)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PreventRepeat | 
 |  |  |     @ApiOperation("修改") | 
 |  |  |     @PostMapping("/updateData") | 
 |  |  |     @RequiresPermissions("business:insuranceapply:create") | 
 |  |  |     public ApiResponse updateData(@RequestBody InsuranceApply insuranceApply) { | 
 |  |  |         return ApiResponse.success(insuranceApplyService.updateData(insuranceApply)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("根据ID删除") | 
 |  |  | 
 |  |  |     public void exportExcel (@RequestBody PageWrap<InsuranceApplyQueryDTO> pageWrap, HttpServletResponse response) { | 
 |  |  |         ExcelExporter.build(InsuranceApply.class).export(insuranceApplyService.findPage(pageWrap).getRecords(), "投保申请信息表", response); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("导出投保详情单") | 
 |  |  |     @PostMapping("/exportDetailExcel") | 
 |  |  |     @RequiresPermissions("business:insuranceapply:exportExcel") | 
 |  |  | 
 |  |  |     public ApiResponse<InsuranceApply> findById(@PathVariable Integer id) { | 
 |  |  |         return ApiResponse.success(insuranceApplyService.findDetail(id)); | 
 |  |  |     } | 
 |  |  |     @ApiOperation("根据ID查询") | 
 |  |  |     @ApiOperation("企业签署保单") | 
 |  |  |     @GetMapping("/getSignLink/{id}") | 
 |  |  |     @RequiresPermissions("business:insuranceapply:query") | 
 |  |  |     public ApiResponse<String> getSignLink(@PathVariable Integer id) { | 
 |  |  | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("获取保单止期与初始金额") | 
 |  |  |     @PostMapping("/getCountCyclePriceVO") | 
 |  |  |     public ApiResponse<CountCyclePriceVO> getCountCyclePriceVO (@RequestBody CountCyclePriceDTO countCyclePriceDTO) { | 
 |  |  |         return ApiResponse.success("操作成功",insuranceApplyService.getCountCyclePriceVO(countCyclePriceDTO)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("测试实际金额") | 
 |  |  |     @GetMapping("/testFee") | 
 |  |  |     public ApiResponse testFee(Integer id) { | 
 |  |  |         insuranceApplyService.updateApplyCurrentFee(id); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("测试生成待续保通知") | 
 |  |  |     @GetMapping("/generateNotice") | 
 |  |  |     public ApiResponse generateNotice() { | 
 |  |  |         insuranceApplyService.generateNotice(); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |