|  |  | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | import com.doumee.dao.business.dto.*; | 
 |  |  | import com.doumee.dao.business.model.InsuranceApply; | 
 |  |  | import com.doumee.dao.business.model.UnionApply; | 
 |  |  | import com.doumee.service.business.InsuranceApplyService; | 
 |  |  | import com.doumee.service.business.UnionApplyService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private UnionApplyService unionApplyService; | 
 |  |  |     @Autowired | 
 |  |  |     private InsuranceApplyService insuranceApplyService; | 
 |  |  |  | 
 |  |  |     @PreventRepeat | 
 |  |  |     @ApiOperation("新建") | 
 |  |  | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("合并单复审") | 
 |  |  |     @PostMapping("/reexamineCheck") | 
 |  |  |     @RequiresPermissions("business:unionapply:cancel") | 
 |  |  |     public ApiResponse reexamineCheck(@RequestBody UnionApply unionApply) { | 
 |  |  |         unionApplyService.reexamineCheck(unionApply); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @PreventRepeat | 
 |  |  |     @ApiOperation("上传投保单") | 
 |  |  |     @PostMapping("/uploadToubaodan") | 
 |  |  | 
 |  |  |     @PostMapping("/getSignLink") | 
 |  |  |     @RequiresPermissions("business:unionapply:query") | 
 |  |  |     public ApiResponse getSignLink(@RequestBody SmsCheckDTO smsCheckDTO) { | 
 |  |  |         unionApplyService.getSignLink(smsCheckDTO); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |         return ApiResponse.success( unionApplyService.getSignLink(smsCheckDTO)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("上传保险单") | 
 |  |  |     @PostMapping("/uploadBXD") | 
 |  |  |     @RequiresPermissions("business:unionchange:uploadBXD") | 
 |  |  |     @RequiresPermissions("business:unionapply:uploadBXD") | 
 |  |  |     public ApiResponse uploadBXD(@RequestBody UnionApplyBXDDTO unionApplyBXDDTO) { | 
 |  |  |         unionApplyService.uploadBXD(unionApplyBXDDTO); | 
 |  |  |         insuranceApplyService.updateApplyCurrentFee(null,unionApplyBXDDTO.getId()); | 
 |  |  |         unionApplyService.updateUnionApplyCurrentFee(unionApplyBXDDTO.getId()); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("测试合并单实际金额") | 
 |  |  |     @GetMapping("/testFee") | 
 |  |  |     public ApiResponse testFee(Integer id) { | 
 |  |  |         unionApplyService.updateUnionApplyCurrentFee(id); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |