| | |
| | | ExcelExporter.build(UnionApply.class).export(unionApplyService.findPage(pageWrap).getRecords(), "合并投保单信息表", response); |
| | | } |
| | | |
| | | @ApiOperation("根据ID查询") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:unionapply:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(unionApplyService.findById(id)); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("创建合并单") |
| | | @PostMapping("/merge") |
| | | @RequiresPermissions("business:unionapply:create") |
| | | public ApiResponse merge(@RequestBody SaveUnionApplyDTO saveUnionApplyDTO) { |
| | | return ApiResponse.success(unionApplyService.merge(saveUnionApplyDTO)); |
| | | } |
| | | |
| | | @ApiOperation("关闭合并单") |
| | | @GetMapping("/close") |
| | | @RequiresPermissions("business:unionapply:close") |
| | | public ApiResponse close(@RequestParam Integer id) { |
| | | unionApplyService.cancelMerge(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("上传投保单") |
| | | @PostMapping("/uploadToubaodan") |
| | | @RequiresPermissions("business:unionapply:create") |
| | | public ApiResponse uploadToubaodan(@RequestBody UploadMultifileDTO uploadMultifileDTO) { |
| | | unionApplyService.uploadToubaodan(uploadMultifileDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("签署申请单") |
| | | @GetMapping("/getSignLink") |
| | | @RequiresPermissions("business:unionapply:query") |
| | | public ApiResponse getSignLink(@RequestParam Integer id) { |
| | | unionApplyService.getSignLink(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("上传保险单") |
| | | @PostMapping("/uploadBXD") |
| | | @RequiresPermissions("business:unionchange:query") |
| | | public ApiResponse uploadBXD(@RequestBody UnionApplyBXDDTO unionApplyBXDDTO) { |
| | | unionApplyService.uploadBXD(unionApplyBXDDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | } |