From 0c5defb96c450261e19d4fdbb14979a7b5c92d77 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期三, 06 三月 2024 17:01:47 +0800 Subject: [PATCH] 添加方法 --- cloud-server-other/src/main/java/com/dsh/other/controller/SiteController.java | 20 ++++---------------- 1 files changed, 4 insertions(+), 16 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..bf02cc6 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,7 +164,7 @@ } @RequestMapping("/base/site/listById") - public Site listById(@RequestParam("id") Integer id) { + public Site listById(@RequestBody Integer id) { Site byId = siteService.getById(id); return byId; } @@ -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