| package com.doumee.api.business; | 
|   | 
| import com.doumee.api.BaseController; | 
| import com.doumee.core.annotation.pr.PreventRepeat; | 
| import com.doumee.core.model.ApiResponse; | 
| import com.doumee.dao.business.dto.*; | 
| import com.doumee.service.business.SettleClaimsService; | 
| import com.doumee.service.system.impl.SystemDictDataServiceImpl; | 
| import io.swagger.annotations.Api; | 
| import io.swagger.annotations.ApiOperation; | 
| import io.swagger.models.auth.In; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.web.bind.annotation.*; | 
|   | 
| /** | 
|  * @author 江蹄蹄 | 
|  * @date 2024/01/16 10:03 | 
|  */ | 
| @Api(tags = "报案理赔(新)") | 
| @RestController | 
| @RequestMapping("/business/settleRisk") | 
| public class SettleRiskController extends BaseController { | 
|   | 
|     @Autowired | 
|     private SystemDictDataServiceImpl systemDictDataService; | 
|   | 
|     @Autowired | 
|     private SettleClaimsService settleClaimsService; | 
|   | 
|   | 
|     @PreventRepeat | 
|     @ApiOperation("理赔报案") | 
|     @PostMapping("/saveSettleClaims") | 
|     public ApiResponse<Integer> saveSettleClaims(@RequestBody SettleClaimsDTO settleClaimsDTO) { | 
|         return ApiResponse.success(settleClaimsService.saveSettleClaims(settleClaimsDTO,systemDictDataService)); | 
|     } | 
|   | 
|   | 
|     @PreventRepeat | 
|     @ApiOperation("添加材料") | 
|     @PostMapping("/saveSupplementFile") | 
|     public ApiResponse saveSupplementFile(@RequestBody SaveSupplementDescribeDTO dto) { | 
|         settleClaimsService.saveSupplementFile(dto); | 
|         return ApiResponse.success(null); | 
|     } | 
|   | 
|   | 
|   | 
|     @PreventRepeat | 
|     @ApiOperation("撤销报案") | 
|     @PostMapping("/returnSettle") | 
|     public ApiResponse returnSettle(@RequestBody OptSettleClaimsDTO dto) { | 
|         settleClaimsService.returnSettle(dto); | 
|         return ApiResponse.success(null); | 
|     } | 
|   | 
|   | 
|     @PreventRepeat | 
|     @ApiOperation("确认金额") | 
|     @GetMapping("/confirmFee") | 
|     public ApiResponse confirmFee(@RequestParam Integer id) { | 
|         settleClaimsService.confirmFee(id); | 
|         return ApiResponse.success(null); | 
|     } | 
|   | 
|     @PreventRepeat | 
|     @ApiOperation("修改收款信息") | 
|     @PostMapping("/updReceiveInfo") | 
|     public ApiResponse updReceiveInfo(@RequestBody UpdReceiveInfoDTO dto) { | 
|         settleClaimsService.updReceiveInfo(dto); | 
|         return ApiResponse.success(null); | 
|     } | 
|   | 
| } |