| | |
| | | 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}") |
| | | public R<ReportVXVO> getOne(@PathVariable Integer id){ |
| | | ReportVXVO res = reportService.getRejectReportById(id); |
| | | return R.ok(res); |
| | | } |
| | | |
| | | /** |
| | | * 报案 |
| | | * |
| | |
| | | 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 = "案件台-报案人员-编辑") |
| | | @PutMapping("/updateReport") |
| | | @ApiResponse(message = "执行成功", code = 200) |