From e93aad02d2dd2a6e624e81ea0adb3611a8fc43e5 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期四, 26 十二月 2024 17:16:19 +0800 Subject: [PATCH] 合并代码 --- ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/ShopClient.java | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/ShopClient.java b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/ShopClient.java index bbc7986..62983d7 100644 --- a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/ShopClient.java +++ b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/ShopClient.java @@ -4,13 +4,16 @@ import com.ruoyi.common.core.constant.ServiceNameConstants; import com.ruoyi.common.core.domain.R; import com.ruoyi.other.api.domain.Shop; +import com.ruoyi.other.api.domain.ShopBalanceStatement; import com.ruoyi.other.api.factory.ShopClientFallbackFactory; import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; +import java.util.Set; /** * @author zhibing.pu @@ -27,7 +30,9 @@ */ @PostMapping("/shop/getShopById") R<Shop> getShopById(@RequestParam("id") Integer id); - + + @PostMapping("/shop/getShopByUserId") + R<List<Shop>> getShopByUserId(@RequestParam("id") Long id); /** * 根据店铺管理员电话获取门店数据 @@ -38,5 +43,18 @@ R<Shop> getShopByPhone(@RequestParam("phone") String phone); @PostMapping("/getShopByUserIds") - public R<List<Shop>> getShopByUserIds(@RequestBody List<Long> userIds); + R<List<Shop>> getShopByUserIds(@RequestBody List<Long> userIds); + + @GetMapping("/getShopIdByName") + R<Set<Integer>> getShopIdByName(String shopName); + + @PostMapping("/shop-balance-statement/getList") + R<List<ShopBalanceStatement>> getShopBalanceStatementList(@RequestBody ShopBalanceStatement shopBalanceStatement); + + /** + * 编辑门店 + * @param shop + */ + @PostMapping("/shop-balance-statement/updateShop") + void updateShop(Shop shop); } -- Gitblit v1.7.1