From 76bb1a5538a376d307fda90fa3ad7ee4a5887905 Mon Sep 17 00:00:00 2001
From: CeDo <cedoo@qq.com>
Date: 星期三, 21 四月 2021 20:41:24 +0800
Subject: [PATCH] bugfixed:限制商铺 订单发货方式

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java
index df9f375..f18bf7e 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ShopApi.java
@@ -64,6 +64,16 @@
     }
 
     /**
+     * 新增店铺
+     * @param storeVO   店铺信息
+     * @return  新增结果
+     */
+    @PostMapping("/addStore")
+    public R addStore(@RequestBody ShopStoreVO storeVO) {
+        return comShopStoreService.addStore(storeVO);
+    }
+
+    /**
      * 编辑店铺、启用、禁用
      *
      * @param storeVO
@@ -107,6 +117,16 @@
     @GetMapping("/getUserStoreInfo")
     public R getUserStoreInfo(@RequestParam("userId") Long userId) {
         return comShopStoreService.getUserStoreInfo(userId);
+    }
+    /**
+     * 获取用户商铺详细
+     *
+     * @param account 用户账号
+     * @return
+     */
+    @GetMapping("/getUserStoreInfoByAccount")
+    public R<ShopStoreVO> getUserStoreInfoByAccount(@RequestParam("account") String account) {
+        return comShopStoreService.getUserStoreInfo(account);
     }
 
     /**
@@ -158,6 +178,7 @@
      */
     @PostMapping("/pageShopGoods")
     public R pageShopGoods(@RequestBody ComShopGoodsDTO comShopGoodsDTO) {
+
         return comShopGoodsService.pageShopGoods(comShopGoodsDTO);
     }
 
@@ -179,6 +200,16 @@
     @PostMapping("shopCartList")
     public R shopCartList(@RequestParam("userId") Long userId) {
         return comShopCartService.shopCartList(userId);
+    }
+
+    /**
+     * 查询用户购物车数量
+     * @param userId    用户id
+     * @return  用户购物车商品数量
+     */
+    @PostMapping("shopCartUserTotal")
+    public R shopCartUserTotal(@RequestParam("userId") Long userId) {
+        return comShopCartService.shopCartUserTotal(userId);
     }
 
     /**
@@ -360,6 +391,7 @@
      * @param id 商铺Id
      * @return
      */
+    @Transactional(rollbackFor = Exception.class)
     @PostMapping("editShopGoods/{id}")
     public R editShopGoods(@PathVariable("id") Long id,@RequestBody AddShopGoodsVO addShopGoodsVO) {
         return comShopGoodsService.editShopGoods(id, addShopGoodsVO);
@@ -467,5 +499,22 @@
         return comShopOrderService.pageShopFunds(pageComShopFundsSearchDTO);
     }
 
+    /**
+     * 微信支付订单回调
+     * @param wxPayNotifyOrderDTO   订单支付回调参数
+     */
+    @PostMapping("/wxOrderPayNotify")
+    public void wxOrderPayNotify(@RequestBody WxPayNotifyOrderDTO wxPayNotifyOrderDTO){
+        comShopOrderService.wxOrderPayNotify(wxPayNotifyOrderDTO);
+    }
 
+    /**
+     * 点击去支付订单
+     * @param orderPayDTO   请求参数
+     * @return  支付对象
+     */
+    @PostMapping("/wxPay")
+    public R wxPay(@RequestBody OrderPayDTO orderPayDTO){
+        return  comShopOrderService.wxPay(orderPayDTO);
+    }
 }

--
Gitblit v1.7.1