|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.SaveUnionApplyDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.UnionApplyBXDDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.UploadMultifileDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.model.UnionApply; | 
|---|
|  |  |  | import com.doumee.service.business.UnionApplyService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | 
|---|
|  |  |  | 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)); | 
|---|
|  |  |  | public ApiResponse<UnionApply> findById(@PathVariable Integer id) { | 
|---|
|  |  |  | return ApiResponse.success(unionApplyService.detail(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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|