From bb0bce30a954f4bc42e0a651a14b30fc5f4b5bef Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期一, 23 十月 2023 15:30:14 +0800
Subject: [PATCH] 添加小程序金汇家园

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java |  403 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 396 insertions(+), 7 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java
index e2c3961..b51e4c7 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java
@@ -4,6 +4,7 @@
 import com.alibaba.fastjson.JSONObject;
 import com.panzhihua.common.controller.BaseController;
 import com.panzhihua.common.model.dtos.community.PageActWorkGuideDTO;
+import com.panzhihua.common.model.dtos.community.convenient.JinhuiPageConvenientMerchantDTO;
 import com.panzhihua.common.model.dtos.community.convenient.PageConvenientMerchantDTO;
 import com.panzhihua.common.model.vos.LoginUserInfoVO;
 import com.panzhihua.common.model.vos.R;
@@ -19,6 +20,7 @@
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
 
@@ -154,9 +156,8 @@
      */
     @ApiOperation(value = "删除便民服务商家")
     @DeleteMapping("/merchant/delete")
-    public R deleteMerchant(@RequestParam("merchantId") String merchantId,
-                            @RequestParam("operator") String operator) {
-        return jinhuiCommunityService.deleteMerchant(merchantId, operator);
+    public R deleteMerchant(@RequestParam("merchantId") String merchantId) {
+        return jinhuiCommunityService.deleteMerchant(merchantId);
     }
 
     /**
@@ -167,7 +168,9 @@
      */
     @ApiOperation(value = "分页查询便民服务商家", response = ConvenientMerchantVO.class)
     @PostMapping("/merchant/page")
-    public R pageMerchant(@RequestBody PageConvenientMerchantDTO pageConvenientMerchantDTO) {
+    public R pageMerchant(@RequestBody JinhuiPageConvenientMerchantDTO pageConvenientMerchantDTO)
+    {
+        pageConvenientMerchantDTO.setAuditType("2");
         return jinhuiCommunityService.pageMerchant(pageConvenientMerchantDTO);
     }
 
@@ -242,6 +245,7 @@
     @ApiOperation(value = "商家评论列添加")
     @PostMapping("/merchantEvaluate/addData")
     public R merchantEvaluateAddData(@RequestBody JinghuiMerchantEvaluateVO item) {
+        item.setUserId(getUserId()+"");
         return jinhuiCommunityService.merchantEvaluateAddData(item);
     }
 
@@ -318,6 +322,20 @@
     }
 
 
+    /**
+     * 空间预约分类分页查询
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "空间预约分类分页查询", response = JinhuiInterspaceTypeVO.class)
+    @GetMapping("/interspaceTypeGetList")
+    public R interspaceTypeGetList(@RequestParam("pageNum") int pageNum,
+                                   @RequestParam("pageSize") int pageSize)
+    {
+        return jinhuiCommunityService.interspaceTypeGetList(pageNum,pageSize);
+    }
+
+
     /***************************************************************************************************************
      *
      *
@@ -332,12 +350,16 @@
      * @return
      */
     @ApiOperation(value = "空间预约申请分页", response = JinhuiInterspaceApplyForVO.class)
-    @GetMapping("//applyFor/getList")
+    @GetMapping("/applyFor/getList")
     public R applyForGetList(@RequestParam("pageNum") int pageNum,
                              @RequestParam("pageSize") int pageSize,
                              @RequestParam(value = "intendantType", required = false) String intendantType,
-                             @RequestParam(value = "state", required = false) String state) {
-        return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, state);
+                             @RequestParam(value = "state", required = false) String state,
+                             @RequestParam(value = "interspaceTime",required = false) String interspaceTime,
+                             @RequestParam(value = "subscribeTimeFrame",required = false) String subscribeTimeFrame,
+                             @RequestParam(value = "interspaceId",required = false) String  interspaceId) {
+        return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType,
+                state,interspaceTime,subscribeTimeFrame,interspaceId);
     }
 
     /**
@@ -390,9 +412,376 @@
     }
 
 
+/******************************************************************************************************************
+ *
+ *
+ *                             金汇微心愿
+ *
+ *
+ ******************************************************************************************************************/
+    /**
+     * 分页查询
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿列表", response = JinhuiMicroVolunteeringVO.class)
+    @GetMapping("/volunteering/getList")
+    public R volunteeringGetList(@RequestParam("pageNum") int pageNum,
+                                 @RequestParam("pageSize") int pageSize,
+                                 @RequestParam(value = "state", required = false)String state)
+    {
+        return jinhuiCommunityService.volunteeringGetList(pageNum,pageSize,getUserId()+"",state);
+    }
+
+    /**
+     * 详情
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿详情", response = JinhuiMicroVolunteeringVO.class)
+    @GetMapping("/volunteering/getDetails")
+    public R volunteeringGetDetails(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.volunteeringGetDetails(id);
+    }
+    /**
+     * 新增
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿新增")
+    @PostMapping("/volunteering/addData")
+    public R volunteeringAddData(@RequestBody JinhuiMicroVolunteeringVO item)
+    {
+        item.setUserId(getUserId()+"");
+        return jinhuiCommunityService.volunteeringAddData(item);
+    }
+
+    /**
+     * 编辑
+     * @param item
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿编辑")
+    @PostMapping("/volunteering/editData")
+    public R volunteeringEditData(@RequestBody JinhuiMicroVolunteeringVO item)
+    {
+        return jinhuiCommunityService.volunteeringEditData(item);
+    }
+
+    /**
+     * 删除
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿删除")
+    @DeleteMapping("/volunteering/expurgateData")
+    public R volunteeringExpurgateData(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.volunteeringExpurgateData(id);
+    }
+
+
+    /**
+     * 分页查询
+     *
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿分类列表", response = JinhuiMicroVolunteeringTypeVO.class)
+    @GetMapping("/micro/type/getList")
+    public R volunteeringTypeGetList(@RequestParam("pageNum") int pageNum,
+                                     @RequestParam("pageSize") int pageSize) {
+        return jinhuiCommunityService.volunteeringTypeGetList(pageNum, pageSize);
+    }
+
+    /*********************************************************************************************************
+     *
+     *
+     *            金汇商城商品
+     *
+     *
+     *********************************************************************************************************/
+    /**
+     * 分页查询
+     *
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇商城商品列表表", response = JinhuiShoppingVO.class)
+    @GetMapping("/shoppingGetList")
+    public R shoppingGetList(@RequestParam("pageNum") int pageNum,
+                             @RequestParam("pageSize") int pageSize,
+                             @RequestParam(value = "goodName", required = false) String goodName,
+                             @RequestParam(value = "id", required = false) String id)
+    {
+        return jinhuiCommunityService.shoppingGetList(pageNum,pageSize,goodName,"1",id);
+    }
+
+
+    @ApiOperation(value = "金汇商城商品详情", response = JinhuiShoppingVO.class)
+    @GetMapping("/shoppingGetDetails")
+    public R shoppingGetDetails(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.shoppingGetDetails(id);
+    }
+
+
+
+    /********************************************************************************************************
+     *
+     *
+     *                         金汇商城商品订单
+     *
+     *
+     ********************************************************************************************************/
+
+    /**
+     * 分页查询
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "订单列表", response = JinhuiShoppingOrderVO.class)
+    @GetMapping("/orderGetList")
+    public R orderGetList(@RequestParam("pageNum") int pageNum,
+                          @RequestParam("pageSize") int pageSize,
+                          @RequestParam(value = "goodsId", required = false)String goodsId,
+                          @RequestParam(value = "orderNumber", required = false)String orderNumber,
+                          @RequestParam(value = "goodName", required = false)String goodName,
+                          @RequestParam(value = "name", required = false)String name,
+                          @RequestParam(value = "cancelType", required = false)String cancelType)
+    {
+        return jinhuiCommunityService.orderGetList(pageNum,pageSize,getUserId()+"",
+                goodsId,orderNumber,goodName,name,cancelType);
+    }
+
+    /**
+     * 分页详情
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "订单详情", response = JinhuiShoppingOrderVO.class)
+    @GetMapping("/orderGetDetails")
+    public R orderGetDetails(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.orderGetDetails(id);
+    }
+
+    /**
+     * 新增
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "订单新增")
+    @PostMapping("/orderAddData")
+    public R orderAddData(@RequestBody JinhuiShoppingOrderVO item)
+    {
+        return jinhuiCommunityService.orderAddData(item);
+    }
+
+    /**
+     * 取消
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "订单取消")
+    @GetMapping("/orderCancelOrder")
+    public R orderCancelOrder(@RequestParam("orderId") String orderId)
+    {
+        return jinhuiCommunityService.orderCancelOrder(orderId);
+    }
+
+
+    /**
+     * 删除
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "订单删除")
+    @DeleteMapping("/orderExpurgateData")
+    public R orderExpurgateData(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.orderExpurgateData(id);
+    }
+
+
+    @ApiOperation(value = "订单核销")
+    @GetMapping("/orderCheck")
+    public R orderEditData(@RequestParam("id") String id)
+    {
+
+        if(StringUtils.isEmpty(id))
+        {
+            return R.fail("订单id不能为空");
+        }
+
+        JinhuiShoppingOrderVO vo=new JinhuiShoppingOrderVO();
+        vo.setId(id);
+        vo.setCancelType("1");
+        vo.setCancelTime(new Date());
+        return jinhuiCommunityService.orderEditData(vo);
+    }
+
+
+    /******************************************************************************************************
+     *
+     *                    金汇文章
+     *
+     *******************************************************************************************************/
+    /**
+     * 分页查询
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇文章列表", response = JinhuiArticleManagementVO.class)
+    @GetMapping("/articleGetList")
+    public R articleGetList(@RequestParam("pageNum") int pageNum,
+                            @RequestParam("pageSize")  int pageSize)
+    {
+        return jinhuiCommunityService.articleGetList(pageNum,pageSize,"1","1");
+    }
+
+    /**
+     * 详情
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "金汇文章详情", response = JinhuiArticleManagementVO.class)
+    @GetMapping("/articleGetDetails")
+    public R articleGetDetails(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.articleGetDetails(id);
+    }
+
+
+
+    /*************************************************************************************************************
+     *
+     *                   金汇体验活动
+     *
+     ***************************************************************************************************************/
+    /**
+     * 分页查询
+     *
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "体验活动列表", response = JinhuiExperienceActivityVO.class)
+    @GetMapping("/experienceGetList")
+    public R experienceGetList(@RequestParam("pageNum") int pageNum,
+                               @RequestParam("pageSize")  int pageSize,
+                               @RequestParam(value = "activityName", required = false) String activityName,
+                               @RequestParam(value = "activityType", required = false) String activityType,
+                               @RequestParam(value = "starTime", required = false) Date starTime,
+                               @RequestParam(value = "endTime", required = false) Date endTime)
+    {
+        return jinhuiCommunityService.experienceGetList(pageNum,pageSize,activityName,activityType,starTime,endTime);
+    }
+
+    /**
+     * 单个详情
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "体验活动单个详情", response = JinhuiExperienceActivityVO.class)
+    @GetMapping("/experienceGetDetails")
+    public R experienceGetDetails(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.experienceGetDetails(id);
+    }
 
 
 
 
+    /*******************************************************************************************************
+     *
+     *                           金汇报名体验
+     *
+     *******************************************************************************************************/
+    /**
+     * 分页查询
+     *
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇报名体验列表", response = JinhuiApplyExperienceVO.class)
+    @GetMapping("/applyExperienceGetList")
+    public R applyExperienceGetList(@RequestParam("pageNum") int pageNum,
+                                    @RequestParam("pageSize") int pageSize,
+                                    @RequestParam(value = "isFeedback", required = false) String isFeedback,
+                                    @RequestParam(value = "activityId", required = false) String activityId)
+    {
+        return jinhuiCommunityService.applyExperienceGetList(pageNum,pageSize,getUserId()+"",isFeedback,activityId);
+    }
+
+    /**
+     * 详情
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "金汇报名体验详情", response = JinhuiApplyExperienceVO.class)
+    @GetMapping("/applyExperienceGetDetails")
+    public R applyExperienceGetDetails(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.applyExperienceGetDetails(id,null,null);
+    }
+
+    /**
+     * 新增
+     *
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇报名体验新增")
+    @PostMapping("/applyExperienceAddData")
+    public R applyExperienceAddData(@RequestBody JinhuiApplyExperienceVO item)
+    {
+        item.setUserId(getUserId()+"");
+        return jinhuiCommunityService.applyExperienceAddData(item);
+    }
+
+
+    /**
+     * 填写反馈接口
+     * @return
+     */
+    @ApiOperation(value = "金汇报名体验填写反馈接口")
+    @GetMapping("/applyExperienceFilIn")
+    public R filIn(@RequestParam("activityId") String activityId,
+                   @RequestParam("content") String content)
+    {
+        return jinhuiCommunityService.filIn(getUserId()+"",activityId,content);
+    }
+
+
+    /******************************************************************************************************
+     *
+     *                    金汇家园
+     *
+     *******************************************************************************************************/
+    /**
+     * 分页查询
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇家园列表", response = JinhuiArticleManagementVO.class)
+    @GetMapping("/homeGetList")
+    public R homeGetList(@RequestParam("pageNum") int pageNum,
+                         @RequestParam("pageSize")  int pageSize)
+    {
+        return jinhuiCommunityService.articleGetList(pageNum,pageSize,null,"2");
+    }
+
+    /**
+     * 详情
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "金汇家园详情", response = JinhuiArticleManagementVO.class)
+    @GetMapping("/homeGetDetails")
+    public R homeGetDetails(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.articleGetDetails(id);
+    }
 
 }

--
Gitblit v1.7.1