From 3dddd301e97c263dda6326c89fa11176d5960b04 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 30 六月 2025 12:11:36 +0800
Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/HongRuiTang into 2.0

---
 ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/miniapp/AppHomeController.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/miniapp/AppHomeController.java b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/miniapp/AppHomeController.java
index 9a26031..f7e0667 100644
--- a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/miniapp/AppHomeController.java
+++ b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/miniapp/AppHomeController.java
@@ -19,6 +19,7 @@
 import com.ruoyi.system.api.domain.dto.ShopAppointmentTimeDto;
 import com.ruoyi.system.api.domain.poji.member.Member;
 import com.ruoyi.system.api.domain.poji.shop.ShopNonAppointableTime;
+import com.ruoyi.system.api.domain.poji.shop.TShopAppointableTime;
 import com.ruoyi.system.api.service.RemoteMemberService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -89,13 +90,13 @@
     @RequestMapping(value = "/appointmentTime", method = RequestMethod.POST)
     @ApiOperation(value = "门店详情预约操作【2.0】")
     public R appointmentTime(@RequestBody AppointmentTimeDto dto) {
-        ShopAppointableTime one = shopAppointableTimeService.getOne(new LambdaQueryWrapper<ShopAppointableTime>().eq(ShopAppointableTime::getShopId, dto.getShopId())
+        TShopAppointableTime one = shopAppointableTimeService.getOne(new LambdaQueryWrapper<TShopAppointableTime>().eq(TShopAppointableTime::getShopId, dto.getShopId())
                 .last(" and DATE_FORMAT(appointable_time, '%Y-%m-%d %H:%i') = '" + dto.getTime() + "'"));
         if (null != one) {
             return R.fail("不能重复预约");
         }
         Long userId = SecurityUtils.getUserId();
-        one = new ShopAppointableTime();
+        one = new TShopAppointableTime();
         one.setShopId(dto.getShopId());
         one.setAppointableTime(LocalDateTime.parse(dto.getTime(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")));
         one.setUserId(userId);
@@ -120,7 +121,7 @@
     @ApiOperation(value = "取消预约【2.0】")
     public R cancelAppointmentTime(@PathVariable("id") String id) {
         Long userId = SecurityUtils.getUserId();
-        ShopAppointableTime one = shopAppointableTimeService.getById(id);
+        TShopAppointableTime one = shopAppointableTimeService.getById(id);
         if (null == one) {
             return R.fail("预约不存在");
         }

--
Gitblit v1.7.1