From 537ed054fe1d9b40b4908cf41ce8c9a6a82d0df9 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期一, 18 三月 2024 16:04:04 +0800 Subject: [PATCH] 部分bug修改 --- cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java | 22 +++++----------------- 1 files changed, 5 insertions(+), 17 deletions(-) diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java index b17ef77..d4259cd 100644 --- a/cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java +++ b/cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java @@ -164,14 +164,14 @@ } @RequestMapping("/base/site/listById") - public Site listById(@RequestParam("id") Integer id) { + public Site listById(@RequestBody Integer id) { Site byId = siteService.getById(id); return byId; } @RequestMapping("/base/site/listBooks") - public List<SiteBooking> listBooks(@RequestParam("id") Integer id) { + public List<SiteBooking> listBooks(@RequestBody Integer id) { List<SiteBooking> siteId = siteBookingService.list(new QueryWrapper<SiteBooking>().eq("siteId", id)); return siteId; } @@ -248,20 +248,8 @@ } } -// public ResultUtil<List<QuerySiteTimes>> querySiteTimes(Integer id, String day, String halfName, String siteName) throws Exception { -// -// if (redisUtil.acquireLock(day,day)) { -// try { -// List<QuerySiteTimes> list = siteService.querySiteTimes(id, day,halfName,siteName); -// return ResultUtil.success(list); -// } finally { -// redisUtil.releaseLock(day); -// } -// } else { -// return ResultUtil.error("系统繁忙,请稍后再试!"); -// } -// -// } + + /** @@ -481,7 +469,7 @@ @ResponseBody @PostMapping("/api/site/queryMySiteById") - @ApiOperation(value = "获取我的预约场地列表详情2.0", tags = {"用户—预约场地"}) + @ApiOperation(value = "获取我的预约场地列表详情", tags = {"用户—预约场地"}) @ApiImplicitParams({ @ApiImplicitParam(value = "id", name = "id", dataType = "int", required = true), @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), -- Gitblit v1.7.1