青羊经侦大队-数据平台
wl
2022-12-27 8b26fa15912e355e57990946ac52f699130788c2
src/main/java/com/example/jz/controller/CauseController.java
@@ -73,6 +73,12 @@
        return R.ok(causeService.getCauserListByCondition(cause, status, size, current));
    }
    @ApiOperation(httpMethod = "GET", value = "案件台-案件录入-案件录入列表")
    @GetMapping("/getCause")
    @ApiResponse(message = "执行成功", code = 200)
    public R getCause(String cause, Integer status, Integer size, Integer current,Integer id) {
        return R.ok(causeService.getCauserListByCondition(cause, status, size, current,id));
    }
    @ApiOperation(httpMethod = "GET", value = "案件台-案件录入-负责人查询")
    @GetMapping("/getManagerList")
    @ApiResponse(message = "执行成功", code = 200)
@@ -111,26 +117,26 @@
        return R.ok();
    }
    @ApiOperation(httpMethod = "POST", value = "案件台-案件录入-报案人员-报案人元导入")
    @PostMapping("/reporterUpload")
    @ApiResponse(message = "执行成功", code = 200)
    @SneakyThrows
    public R uploadReporter(@RequestParam(value = "multipartFile") MultipartFile multipartFile,Integer causeId) {
        causeService.loadFileReport(multipartFile,causeId);
        return R.ok();
    }
    @ApiOperation(httpMethod = "GET", value = "根据群组id查询案件分页")
    @GetMapping("/getAllReportList")
    @ApiResponse(message = "执行成功", code = 200)
    public R<IPage<ReportListVo>> get(Page<ReportListVo> page, ReportParamDto reportParamDto, Integer groupId) {
        return R.ok(reportService.getPageByGroupId(page, reportParamDto, groupId));
    public R<IPage<ReportListVo>> get(Page<ReportListVo> page, ReportParamDto reportParamDto, Integer causeId) {
        return R.ok(reportService.getPageByGroupId(page, reportParamDto, causeId));
    }
    @ApiOperation(httpMethod = "POST", value = "添加人员")
    @PostMapping("/addReporter")
    @ApiResponse(message = "执行成功", code = 200)
    public R<Boolean> get(AddReportDto addReportDto) {
        if (addReportDto.getReporterName() == null || addReportDto.getReporterName().equals("")) {
            return R.failed("报案人员不能为空");
        }
        if (addReportDto.getMobile() == null || addReportDto.getMobile().equals("")) {
            return R.failed("报案人员电话不能为空");
        }
        if (addReportDto.getIdcard() == null || addReportDto.getIdcard().equals("")) {
            return R.failed("报案人员身份证不能为空");
        }
    public R<Boolean> get(@RequestBody AddReportDto addReportDto) {
        return R.ok(causeService.addReportPeople(addReportDto));
    }