| | |
| | | @ApiOperation(httpMethod = "PUT", value = "案件台-案件录入-修改案件") |
| | | @PutMapping("/updateCause") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public R updateCause(@RequestBody CauseDto causeDto, Integer id) { |
| | | public R updateCause(@RequestBody @Validated CauseDto causeDto, Integer id) { |
| | | return R.ok(causeService.updateCause(causeDto, id)); |
| | | } |
| | | |
| | |
| | | |
| | | //第一次案发时间 |
| | | @ApiModelProperty(dataType = "Date", value = "第一次案发时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | // @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date firstTime; |
| | | |
| | | //创建时间 |
| | |
| | | * @Param [causeId] |
| | | * @return java.util.List<com.example.jz.modle.vo.CauseReportVo> |
| | | **/ |
| | | List<CauseReportVo> getReporterList(Integer causeId); |
| | | PageParam<CauseReportVo> getReporterList(Integer causeId); |
| | | |
| | | /** |
| | | * @Description 案件群公告 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<CauseReportVo> getReporterList(Integer causeId) { |
| | | return reportDao.selectList(new QueryWrapper<Report>().eq("cause_id", causeId)).stream() |
| | | public PageParam<CauseReportVo> getReporterList(Integer causeId) { |
| | | PageParam<Report> PageParam = new PageParam<>(); |
| | | PageParam<Report> reportPageParam = reportDao.selectPage(PageParam, new QueryWrapper<Report>().eq("cause_id", causeId)); |
| | | reportPageParam.getRecords().stream() |
| | | .map( |
| | | a -> { |
| | | CauseReportVo causeReportVo = new CauseReportVo(); |
| | |
| | | return causeReportVo; |
| | | } |
| | | ).collect(Collectors.toList()); |
| | | PageParam<CauseReportVo> causeReportVoPageParam = new PageParam<>(); |
| | | BeanUtils.copyProperties(reportPageParam, causeReportVoPageParam); |
| | | return causeReportVoPageParam; |
| | | } |
| | | |
| | | @Override |