From 247da29c67874a091ba3b63f8f4b60d5a42ba425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Sun, 27 Apr 2025 15:09:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A1=8C=E7=A0=81=E6=8D=A2?= =?UTF-8?q?=E5=8F=96=E5=8F=B0=E6=A1=8C=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../czg/controller/user/UShopInfoController.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cash-api/account-server/src/main/java/com/czg/controller/user/UShopInfoController.java b/cash-api/account-server/src/main/java/com/czg/controller/user/UShopInfoController.java index f7496a624..b413caab7 100644 --- a/cash-api/account-server/src/main/java/com/czg/controller/user/UShopInfoController.java +++ b/cash-api/account-server/src/main/java/com/czg/controller/user/UShopInfoController.java @@ -3,10 +3,13 @@ package com.czg.controller.user; import com.czg.account.dto.shopinfo.ShopInfoByCodeDTO; import com.czg.account.dto.shopinfo.ShopInfoDetailDTO; import com.czg.account.dto.shopinfo.ShopInfoSubVO; +import com.czg.account.entity.ShopTable; import com.czg.account.service.ShopInfoService; +import com.czg.account.service.ShopTableService; import com.czg.resp.CzgResult; import com.czg.sa.StpKit; import com.mybatisflex.core.paginate.Page; +import com.mybatisflex.core.query.QueryWrapper; import jakarta.annotation.Resource; import jakarta.validation.constraints.NotEmpty; import org.springframework.web.bind.annotation.GetMapping; @@ -23,6 +26,8 @@ import org.springframework.web.bind.annotation.RestController; public class UShopInfoController { @Resource private ShopInfoService shopInfoService; + @Resource + private ShopTableService shopTableService; /** * 桌码换取详细店铺信息 @@ -33,6 +38,15 @@ public class UShopInfoController { return CzgResult.success(shopInfoService.getByCode(tableCode, lat, lng, true)); } + /** + * 桌码获取详细台桌信息 + * @return 台桌信息 + */ + @GetMapping("/tableInfo") + public CzgResult getTableInfo(@RequestParam String tableCode) { + return CzgResult.success(shopTableService.getOne(new QueryWrapper().eq(ShopTable::getTableCode, tableCode))); + } + /** * 获取店铺详细信息 * @return 店铺信息