From 419c327c6653a571dc831052e81042ea8e5ed057 Mon Sep 17 00:00:00 2001 From: phpcjl <phpcjl@gmail.com> Date: 星期一, 16 十二月 2024 14:03:02 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java index bc863af..7aa69f8 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java @@ -203,6 +203,13 @@ Shop shop = shopService.getById(id); return R.ok(shop); } + + @ResponseBody + @PostMapping("/getShopByUserId") + public R<List<Shop>> getShopByUserId(@RequestParam("id") Integer id){ + List<Shop> list = shopService.lambdaQuery().eq(Shop::getAppUserId, id).list(); + return R.ok(list); + } /** -- Gitblit v1.7.1