| | |
| | | import com.doumee.service.business.InsuranceApplyService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import io.swagger.models.auth.In; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | return ApiResponse.success(insuranceApplyService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("列表") |
| | | @PostMapping("/findListByDTO") |
| | | @RequiresPermissions("business:insuranceapply:query") |
| | | public ApiResponse<List<InsuranceApply>> findListByDTO (@RequestBody InsuranceApplyQueryDTO insuranceApplyQueryDTO) { |
| | | return ApiResponse.success(insuranceApplyService.findListByDTO(insuranceApplyQueryDTO)); |
| | | } |
| | | |
| | | @ApiOperation("导出Excel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:insuranceapply:exportExcel") |
| | | 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 void exportDetailExcel (@RequestBody InsuranceApply model, HttpServletResponse response) { |
| | | ExcelExporter.build(InsuranceApply.class).exportApplyDetail(insuranceApplyService.findDetailForExport(model), response); |
| | | } |
| | | @ApiOperation("根据ID查询") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:insuranceapply:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | public ApiResponse<InsuranceApply> findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(insuranceApplyService.findDetail(id)); |
| | | } |
| | | @ApiOperation("根据ID查询") |
| | | @GetMapping("/getSignLink/{id}") |
| | | @RequiresPermissions("business:insuranceapply:query") |
| | | public ApiResponse<String> getSignLink(@PathVariable Integer id) { |
| | | return ApiResponse.success(insuranceApplyService.getSignLink(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("申请记录状态处理") |