| | |
| | | import com.example.jz.modle.entity.Report; |
| | | import com.example.jz.modle.entity.User; |
| | | import com.example.jz.modle.vo.ReportListVo; |
| | | import com.example.jz.modle.vo.ReportVXVO; |
| | | import com.example.jz.service.GroupUserService; |
| | | import com.example.jz.service.MessageService; |
| | | import com.example.jz.service.ReportService; |
| | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.Serializable; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 报案表(Report)表控制层 |
| | |
| | | return R.ok(reportService.getReportListVoById(id)); |
| | | } |
| | | |
| | | @GetMapping("/rejectReport/{id}") |
| | | @ApiOperation(value = "修改驳回后接口") |
| | | public R<ReportVXVO> getOne(@PathVariable Integer id){ |
| | | ReportVXVO res = reportService.getRejectReportById(id); |
| | | return R.ok(res); |
| | | } |
| | | |
| | | /** |
| | | * 报案 |
| | | * |
| | |
| | | @ApiOperation(value = "审核通过") |
| | | public R<Boolean> audit(@RequestBody Report report) { |
| | | return R.ok(reportService.audit(report)); |
| | | } |
| | | |
| | | @PostMapping("/reject") |
| | | @ApiOperation(value = "驳回") |
| | | public R<Boolean> reject(@RequestBody Map map) { |
| | | return R.ok(reportService.reject((Integer) map.get("id"), (String) map.get("reason"))); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "PUT", value = "案件台-报案人员-编辑") |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "POST", value = "案件台-报案人员-报案材料导出") |
| | | @PostMapping("/exportReporter") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public void exportReport(@RequestParam(value = "id") Integer id, HttpServletResponse response) { |
| | | reportService.exportReporter(id, response); |
| | | } |
| | | // @ApiOperation(httpMethod = "POST", value = "案件台-报案人员-报案材料导出") |
| | | // @PostMapping("/exportReporter") |
| | | // @ApiResponse(message = "执行成功", code = 200) |
| | | // public void exportReport(@RequestParam(value = "id") Integer id, HttpServletResponse response) { |
| | | // reportService.exportReporter(id, response); |
| | | // } |
| | | } |
| | | |