青羊经侦大队-数据平台
wl
2022-09-19 ba21c6caa5e573cf52d7f93f0be14d32fa893935
src/main/java/com/example/jz/controller/ReportController.java
@@ -18,7 +18,6 @@
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;
import java.util.Date;
/**
 * 报案表(Report)表控制层
@@ -64,13 +63,12 @@
    /**
     * 报案
     *
     * @param AddReportDto 实体对象
     * @param addReportDto 实体对象
     * @return 新增结果
     */
    @PostMapping
    @ApiOperation(value = "报案")
    public R<Boolean> insert(@RequestBody AddReportDto addReportDto) {
        return R.ok(reportService.addReport(addReportDto));
    }
@@ -86,15 +84,16 @@
        return R.ok(reportService.audit(report));
    }
    @ApiOperation(httpMethod = "PUT", value = "报案人编辑")
    @ApiOperation(httpMethod = "PUT", value = "案件台-报案人员-编辑")
    @PutMapping("/updateReport")
    @ApiResponse(message = "执行成功", code = 200)
    public R updateReport(@RequestBody Report report) {
        report.setPic(null);
        reportService.updateById(report);
        return R.ok();
    }
    @ApiOperation(httpMethod = "DELETE", value = "报案人人员退群")
    @ApiOperation(httpMethod = "DELETE", value = "案件台-报案人员-退群")
    @DeleteMapping("/leaveGroup")
    @ApiResponse(message = "执行成功", code = 200)
    public R leaveGroup(@RequestParam(value = "id") Integer id, @RequestParam(value = "groupId") Integer groupId) {
@@ -102,7 +101,7 @@
        return R.ok();
    }
    @ApiOperation(httpMethod = "DELETE", value = "删除报案人")
    @ApiOperation(httpMethod = "DELETE", value = "案件台-报案人员-删除")
    @DeleteMapping("/deleteReporter")
    @ApiResponse(message = "执行成功", code = 200)
    public R deleteReporter(@RequestParam(value = "id") Integer id) {
@@ -110,7 +109,7 @@
        return R.ok();
    }
    @ApiOperation(httpMethod = "POST", value = "导出材料")
    @ApiOperation(httpMethod = "POST", value = "案件台-报案人员-报案材料导出")
    @PostMapping("/exportReporter")
    @ApiResponse(message = "执行成功", code = 200)
    public void exportReport(@RequestParam(value = "id") Integer id, HttpServletResponse response) {