From 2a3d0885c11a73d41fb03c985f0032086cd8fa07 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 08 三月 2024 17:42:58 +0800
Subject: [PATCH] 合并代码

---
 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