|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.SaveUnionChangeDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.dto.UnionChangeBXDDTO; | 
|---|
|  |  |  | import com.doumee.dao.business.model.UnionChange; | 
|---|
|  |  |  | import com.doumee.service.business.UnionChangeService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | 
|---|
|  |  |  | public ApiResponse findById(@PathVariable Integer id) { | 
|---|
|  |  |  | return ApiResponse.success(unionChangeService.findById(id)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("创建合并单") | 
|---|
|  |  |  | @PostMapping("/merge") | 
|---|
|  |  |  | @RequiresPermissions("business:unionchange:create") | 
|---|
|  |  |  | public ApiResponse merge(@RequestBody SaveUnionChangeDTO saveUnionChangeDTO) { | 
|---|
|  |  |  | return ApiResponse.success(unionChangeService.merge(saveUnionChangeDTO)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("关闭合并单") | 
|---|
|  |  |  | @GetMapping("/close") | 
|---|
|  |  |  | @RequiresPermissions("business:unionchange:close") | 
|---|
|  |  |  | public ApiResponse close(@RequestParam Integer id) { | 
|---|
|  |  |  | unionChangeService.cancelMerge(id); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("签署申请单") | 
|---|
|  |  |  | @GetMapping("/getSignLink") | 
|---|
|  |  |  | @RequiresPermissions("business:unionchange:query") | 
|---|
|  |  |  | public ApiResponse getSignLink(@RequestParam Integer id) { | 
|---|
|  |  |  | unionChangeService.getSignLink(id); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("上传保险单") | 
|---|
|  |  |  | @PostMapping("/uploadBXD") | 
|---|
|  |  |  | @RequiresPermissions("business:unionchange:query") | 
|---|
|  |  |  | public ApiResponse uploadBXD(@RequestBody UnionChangeBXDDTO unionChangeBXDDTO) { | 
|---|
|  |  |  | unionChangeService.uploadBXD(unionChangeBXDDTO); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|