| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | |
| | | MeditationQuestion byId1 = meditationQuestionService.getById(record.getQuestionId()); |
| | | if (byId1!=null){ |
| | | record.setContent(byId1.getContent()); |
| | | LocalDateTime replyTime = byId1.getCreateTime(); |
| | | record.setContentTime(replyTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); |
| | | AppUser data = remoteAppUserService.getAppUserById(byId1.getAppUserId().toString()).getData(); |
| | | if (data!=null){ |
| | | record.setUserName(data.getNickname()); |
| | |
| | | |
| | | |
| | | @GetMapping("/detailMeditationReportQuestion") |
| | | @ApiOperation(value = "查看详情提问举报管理", notes = "管理后台-提问举报管理") |
| | | @ApiOperation(value = "查看详情提问举报管理", tags = "管理后台-提问举报管理") |
| | | public R<MeditationReport> detailMeditationReport(String uid) { |
| | | MeditationReport byId = meditationReportService.getById(uid); |
| | | MeditationQuestion byId3 = meditationQuestionService.getById(byId.getQuestionId()); |
| | |
| | | } |
| | | |
| | | @PostMapping("/deleteMeditationReportQuestion") |
| | | @ApiOperation(value = "批量删除", notes = "管理后台-提问举报管理") |
| | | @ApiOperation(value = "批量删除", tags = "管理后台-提问举报管理") |
| | | public R deleteMeditationReport(String ids) { |
| | | return R.ok(meditationReportService.removeBatchByIds(Arrays.asList(ids.split(",")))); |
| | | return R.ok(meditationReportService.removeBatchByIds(Arrays.asList(ids.split(",")).stream().map(Long::valueOf).collect(Collectors.toList()))); |
| | | } |
| | | } |
| | | |