diff --git a/pjcloud-integrated/pjcloud-integrated-biz/src/main/java/com/bsd/pjcloud/integrated/controller/LostAndFoundController.java b/pjcloud-integrated/pjcloud-integrated-biz/src/main/java/com/bsd/pjcloud/integrated/controller/LostAndFoundController.java index 353939d51..5d77cdbdf 100644 --- a/pjcloud-integrated/pjcloud-integrated-biz/src/main/java/com/bsd/pjcloud/integrated/controller/LostAndFoundController.java +++ b/pjcloud-integrated/pjcloud-integrated-biz/src/main/java/com/bsd/pjcloud/integrated/controller/LostAndFoundController.java @@ -149,4 +149,15 @@ public class LostAndFoundController { return R.ok(lostAndFoundPageVoPage); } + @Operation(summary = "失物招领app详情查询" , description = "失物招领app详情查询" ) + @GetMapping("/app/getDetails") + public R getLostAndFoundAppDetail(@RequestParam("id") Long id) { + LostAndFoundEntity lostAndFound = lostAndFoundService.getById(id); + if (Objects.isNull(lostAndFound)) { + return R.failed("失物招领信息不存在"); + } + LostAndFoundPageVo lostAndFoundPageVo = BeanUtils.toBean(lostAndFound, LostAndFoundPageVo.class); + return R.ok(lostAndFoundPageVo); + } + } \ No newline at end of file