¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.dao.business.vo.CompensationVO; |
| | | import com.doumee.dao.business.vo.RiskConfigVO; |
| | | import com.doumee.service.business.SettleClaimsService; |
| | | import com.doumee.service.system.SystemDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2024/01/16 10:03 |
| | | */ |
| | | @Api(tags = "æ¥æ¡çèµï¼æ°ï¼") |
| | | @RestController |
| | | @RequestMapping("/business/settleRisk") |
| | | public class SettleRiskController extends BaseController { |
| | | |
| | | @Autowired |
| | | private SystemDictDataService systemDictDataService; |
| | | |
| | | @Autowired |
| | | private SettleClaimsService settleClaimsService; |
| | | |
| | | @ApiOperation("è·åé£é©é
ç½®") |
| | | @GetMapping("/getRiskConfig") |
| | | public ApiResponse<RiskConfigVO> getRiskConfig() { |
| | | return ApiResponse.success(systemDictDataService.getRiskConfig()); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æ´æ°é£é©é
ç½®") |
| | | @PostMapping("/updRiskConfig") |
| | | public ApiResponse updRiskConfig(@RequestBody RiskConfigDTO riskConfigDTO) { |
| | | systemDictDataService.updRiskConfig(riskConfigDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("è¡¥å
说æ") |
| | | @PostMapping("/saveSupplementDescribe") |
| | | public ApiResponse saveSupplementDescribe(@RequestBody SaveSupplementDescribeDTO dto) { |
| | | settleClaimsService.saveSupplementDescribe(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ·»å ææ") |
| | | @PostMapping("/saveSupplementFile") |
| | | public ApiResponse saveSupplementFile(@RequestBody SaveSupplementDescribeDTO dto) { |
| | | settleClaimsService.saveSupplementFile(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("å¹³å°ç«æ¡æéå") |
| | | @PostMapping("/register") |
| | | public ApiResponse register(@RequestBody OptSettleClaimsDTO dto) { |
| | | settleClaimsService.register(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ·»å æ¥æ¡å·") |
| | | @PostMapping("/addReportNum") |
| | | public ApiResponse addReportNum(@RequestBody OptSettleClaimsDTO dto) { |
| | | settleClaimsService.addReportNum(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ·»å 夿³¨") |
| | | @PostMapping("/addRemark") |
| | | public ApiResponse addRemark(@RequestBody OptSettleClaimsDTO dto) { |
| | | settleClaimsService.addRemark(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("åçä¸å¡") |
| | | @PostMapping("/acceptance") |
| | | public ApiResponse acceptance(@RequestBody AcceptanceSettleClaimsDTO dto) { |
| | | settleClaimsService.acceptance(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("çèµè´¹ç¨é¡¹ä¿¡æ¯") |
| | | @GetMapping("/getCompensation") |
| | | public ApiResponse<List<CompensationVO>> getCompensation(@RequestParam Integer id) { |
| | | return ApiResponse.success(settleClaimsService.getCompensation(id)); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("çèµ") |
| | | @PostMapping("/compensation") |
| | | public ApiResponse compensation(@RequestBody CompensationDTO dto) { |
| | | settleClaimsService.compensation(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("å议审æ¹") |
| | | @PostMapping("/discussAudit") |
| | | public ApiResponse discussAudit(@RequestBody DiscussAuditDTO dto) { |
| | | settleClaimsService.discussAudit(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ ¸èµ") |
| | | @PostMapping("/nuclearCompensation") |
| | | public ApiResponse nuclearCompensation(@RequestBody CompensationDTO dto) { |
| | | settleClaimsService.nuclearCompensation(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("ä¿®æ¹éé¢") |
| | | @PostMapping("/updFee") |
| | | public ApiResponse updFee(@RequestBody CompensationDTO dto) { |
| | | settleClaimsService.updFee(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("ä¿®æ¹æ¡ä»¶ç±»å") |
| | | @PostMapping("/updCaseType") |
| | | public ApiResponse updCaseType(@RequestBody CaseTypeDTO dto) { |
| | | settleClaimsService.updCaseType(dto); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | } |