From 49e96cc15baf35d710fe3a049fb97aff6a1af132 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期二, 25 二月 2025 19:35:33 +0800 Subject: [PATCH] 修改分佣逻辑 --- ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/ShopClient.java | 47 +++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 43 insertions(+), 4 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 cf409f1..95cf6a1 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,6 +4,7 @@ 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; @@ -11,7 +12,9 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; +import java.math.BigDecimal; import java.util.List; +import java.util.Map; import java.util.Set; /** @@ -41,9 +44,45 @@ @PostMapping("/shop/getShopByPhone") R<Shop> getShopByPhone(@RequestParam("phone") String phone); - @PostMapping("/getShopByUserIds") - public R<List<Shop>> getShopByUserIds(@RequestBody List<Long> userIds); + @PostMapping("/shop/getShopByUserIds") + R<List<Shop>> getShopByUserIds(@RequestBody List<Long> userIds); - @GetMapping("/getShopIdByName") - R<Set<Integer>> getShopIdByName(String shopName); + @PostMapping("/shop/getShopIdByName") + R<Set<Integer>> getShopIdByName(@RequestParam("shopName") String shopName); + + @PostMapping("/shop-balance-statement/getList") + R<List<ShopBalanceStatement>> getShopBalanceStatementList(@RequestBody ShopBalanceStatement shopBalanceStatement); + + /** + * 编辑门店 + * @param shop + */ + @PostMapping("/shop/updateShop") + void updateShop(Shop shop); + + + /** + * 获取所有门店 + * @return + */ + @PostMapping("/shop/getAllShop") + R<List<Shop>> getAllShop(); + + + @GetMapping("/shop/getShopStatistics") + public R<Map<String, BigDecimal>> getShopStatistics(@RequestParam("shopId") Integer shopId); + + /** + * 获取指定用户的服务商 + */ + @GetMapping("/shop/getServiceProvider") + R<Shop> getServiceProvider(@RequestParam("appUserId") Long appUserId); + + /** + * 获取指定用户的高级服务商 + */ + @GetMapping("/shop/getSuperiorServiceProvider") + public R<Shop> getSuperiorServiceProvider(@RequestParam("appUserId") Long appUserId); + + } -- Gitblit v1.7.1