From d22e1edaf883f878685eda9b43b90f72e81c4b7b Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期四, 31 八月 2023 16:43:21 +0800
Subject: [PATCH] 修改用户商家上下架问题

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java |   93 +++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 82 insertions(+), 11 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
index 70542af..c9b7b05 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
@@ -11334,7 +11334,8 @@
      */
     @GetMapping("/VolunteerType/volunteerTypeGetList")
     public R volunteerTypeGetList(@RequestParam("pageNum")  int pageNum,
-                                  @RequestParam("pageSize")  int pageSize);
+                                  @RequestParam("pageSize")  int pageSize,
+                                  @RequestParam("type")   String type);
 
     /**
      * 新增
@@ -11415,7 +11416,7 @@
      * @param grantIntegral
      * @return
      */
-    @PostMapping("/grantIntegral")
+    @PostMapping("/VolunteerActivitiesPeople/grantIntegral")
     public R grantIntegral(@RequestBody GrantIntegral grantIntegral);
 
     /**************************************************************************************************************
@@ -11494,7 +11495,9 @@
     public R VolunteerIntegralMerchantQueryList(@RequestParam("pageNum") int pageNum,
                        @RequestParam("pageSize")  int pageSize,
                        @RequestParam(value = "name", required = false) String name,
-                       @RequestParam(value = "state", required = false) String state);
+                       @RequestParam(value = "state", required = false) String state,
+                        @RequestParam(value = "goodType", required = false) String goodType,
+                        @RequestParam(value = "merchantId", required = false) String merchantId);
 
     /**
      * 新增
@@ -11508,7 +11511,7 @@
     public R  VolunteerIntegralMerchantUpdateById(@RequestBody VolunteerIntegralMerchantVO vimVO);
 
 
-    @PostMapping("/unmount")
+    @PostMapping("/VolunteerIntegralMerchant/unmount")
     public R  VolunteerIntegralMerchantUnmount(@RequestBody VolunteerIntegralMerchantVO vimVO);
 
     @DeleteMapping("/VolunteerIntegralMerchant/deleteById")
@@ -11528,7 +11531,7 @@
      * @param
      * @return
      */
-    @GetMapping("order/getList")
+    @GetMapping("/VolunteerIntegralMerchant/order/getList")
     public R getList(@RequestParam("pageNum") int pageNum,
                      @RequestParam("pageSize")  int pageSize,
                      @RequestParam(value = "goodsId", required = false) String goodsId,
@@ -11537,14 +11540,15 @@
                      @RequestParam(value = "condition", required = false) String condition,
                      @RequestParam(value = "userName", required = false) String userName,
                      @RequestParam(value = "communityId", required = false) String communityId,
-                     @RequestParam(value = "userId", required = false) String userId);
+                     @RequestParam(value = "userId", required = false) String userId,
+                     @RequestParam(value = "orderType", required = false) String orderType);
 
     /**
      * 查询详情
      * @param id
      * @return
      */
-    @GetMapping("order/getData")
+    @GetMapping("/VolunteerIntegralMerchant/order/getData")
     public R getData(@RequestParam("id") String id);
 
     /**
@@ -11552,15 +11556,23 @@
      * @param
      * @return
      */
-    @PostMapping("/order/insertData")
+    @PostMapping("/VolunteerIntegralMerchant/order/insertData")
     public R insertData(@RequestBody VolunteerCreditsExchangeVO item);
+
+    /**
+     * 新增用户购买商家商品记录
+     * @param
+     * @return
+     */
+    @PostMapping("/VolunteerIntegralMerchant/order/insertMerchantData")
+    public R insertMerchantData(@RequestBody VolunteerCreditsExchangeVO item);
 
     /**
      * 更新
      * @param item
      * @return
      */
-    @PostMapping("/order/update")
+    @PostMapping("/VolunteerIntegralMerchant/order/update")
     public R update(@RequestBody VolunteerCreditsExchangeVO item);
 
     /**
@@ -11568,7 +11580,7 @@
      * @param id
      * @return
      */
-    @DeleteMapping("/order/delete")
+    @DeleteMapping("/VolunteerIntegralMerchant/order/delete")
     public R delete(@RequestParam("id") String id);
 
     /**
@@ -11576,10 +11588,69 @@
      * @param id
      * @return
      */
-    @GetMapping("/order/conditionData")
+    @GetMapping("/VolunteerIntegralMerchant/order/conditionData")
     public R conditionData(@RequestParam("id") String id);
 
+    /*****************************************************************************************************************
+     *
+     *
+     *                        路北社区商家管理
+     *
+     *
+     *****************************************************************************************************************/
+    /**
+     * 分页查询
+     * @param
+     * @return
+     */
+    @GetMapping("/VolunteerMerchant/getList")
+    public R volunteerMerchantGetList(@RequestParam("pageNum") int pageNum,
+                                      @RequestParam("pageSize") int pageSize,
+                                      @RequestParam(value = "merchantState", required = false) String merchantState,
+                                      @RequestParam(value = "merchantType", required = false) String merchantType,
+                                      @RequestParam(value = "name", required = false) String name,
+                                      @RequestParam(value = "communityId", required = false) String communityId);
+
+    /**
+     * 新增
+     * @param
+     * @return
+     */
+    @PostMapping("/VolunteerMerchant/insert")
+    public R insertVolunteerMerchant(@RequestBody VolunteerMerchantVO vtvo);
 
 
+    @PostMapping("/VolunteerMerchant/update")
+    public R updateVolunteerMerchant(@RequestBody VolunteerMerchantVO vtvo);
+
+
+    @DeleteMapping("/VolunteerMerchant/delete")
+    public R deleteVolunteerMerchant(@RequestParam("id") String id);
+
+    @GetMapping("/VolunteerMerchant/getUser")
+    public R volunteerMerchantGetUser(@RequestParam("communityId") String communityId,
+                                      @RequestParam(value = "userName", required = false) String userName,
+                                      @RequestParam(value = "userPhone", required = false)String userPhone);
+
+
+    @GetMapping("/VolunteerMerchant/getById")
+    public R volunteerMerchantGetById(@RequestParam("id") String id);
+
+    /**
+     * 是否是商家
+     * @param userId
+     * @return
+     */
+    @GetMapping("/VolunteerMerchant/isMerchant")
+    public R isMerchant(@RequestParam("userId") String userId);
+
+
+    /**
+     * 社区取消订单
+     * @param id
+     * @return
+     */
+    @GetMapping("/VolunteerIntegralMerchant/order/communityCancellation")
+    public R communityCancellation(@RequestParam("id") String id);
 
 }

--
Gitblit v1.7.1