|
@@ -3,17 +3,17 @@ package cn.cslg.report.controller.InvalidReReport;
|
|
|
|
|
|
import cn.cslg.report.common.core.base.Constants;
|
|
|
import cn.cslg.report.common.model.dto.ShareReportDTO;
|
|
|
+import cn.cslg.report.common.model.dto.invalidReReport.ProofDetailDTO;
|
|
|
import cn.cslg.report.common.utils.Response;
|
|
|
+import cn.cslg.report.service.business.InvalidReReport.ProofDetailService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Tag(name = "无效应对证据详情管理")
|
|
|
@Slf4j
|
|
@@ -21,28 +21,34 @@ import java.io.IOException;
|
|
|
@RestController
|
|
|
@RequestMapping(Constants.REPORT_API + "/proofDetail")
|
|
|
public class ProofDetailController {
|
|
|
+ private final ProofDetailService proofDetailService;
|
|
|
@Operation(summary = "添加证据详情")
|
|
|
@PostMapping("/addProofDetail")
|
|
|
- public String addProofDetail() throws IOException {
|
|
|
-
|
|
|
+ public String addProofDetail(@RequestBody ProofDetailDTO proofDetailDTO) throws IOException {
|
|
|
+ proofDetailService.addProofDetail(proofDetailDTO);
|
|
|
return Response.success();
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "删除证据详情")
|
|
|
- @PostMapping("/removeProofDetail")
|
|
|
- public String removeProofDetail() throws IOException {
|
|
|
+ @PostMapping("/deleteProofDetail")
|
|
|
+ public String deleteProofDetail(@RequestBody List<Integer> ids) throws IOException {
|
|
|
+ proofDetailService.deleteProofDetail(ids);
|
|
|
return Response.success();
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "修改证据详情")
|
|
|
@PostMapping("/updateProofDetail")
|
|
|
- public String updateProofDetail() throws IOException {
|
|
|
+ public String updateProofDetail(@RequestBody ProofDetailDTO proofDetailDTO) throws IOException {
|
|
|
+ proofDetailService.updateProofDetail(proofDetailDTO);
|
|
|
+ //根据Dto的id查询出对应的证据
|
|
|
+ //更新证据的信息
|
|
|
return Response.success();
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "查找证据详情")
|
|
|
- @PostMapping("/queryProofDetail")
|
|
|
- public String queryProofDetail() throws IOException {
|
|
|
+ @GetMapping("/queryProofDetail")
|
|
|
+ public String queryProofDetail(Integer proofId) throws IOException {
|
|
|
+ proofDetailService.queryProofDetail(proofId);
|
|
|
return Response.success();
|
|
|
}
|
|
|
}
|