|  |  |  | 
|---|
|  |  |  | 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("新建") | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @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); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|