From 0c570abeb48ab0afe44a92be8247070de20d0aa2 Mon Sep 17 00:00:00 2001
From: Cui Zhi Feng <7426394+wuxixiaocui@user.noreply.gitee.com>
Date: 星期三, 11 九月 2024 14:30:41 +0800
Subject: [PATCH] 质检 小程序端待审核提交显示提交的数据,如果后台拒绝了,数量发生改变

---
 src/main/java/com/mzl/flower/web/customer/PointGoodsCustomerController.java |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/mzl/flower/web/customer/PointGoodsCustomerController.java b/src/main/java/com/mzl/flower/web/customer/PointGoodsCustomerController.java
index 532a098..2782aa7 100644
--- a/src/main/java/com/mzl/flower/web/customer/PointGoodsCustomerController.java
+++ b/src/main/java/com/mzl/flower/web/customer/PointGoodsCustomerController.java
@@ -4,12 +4,14 @@
 import com.mzl.flower.base.BaseController;
 import com.mzl.flower.base.R;
 import com.mzl.flower.base.ReturnDataDTO;
+import com.mzl.flower.config.security.SecurityUtils;
 import com.mzl.flower.constant.Constants;
-import com.mzl.flower.dto.request.point.PointGoodsCreateDTO;
-import com.mzl.flower.dto.request.point.PointGoodsQueryDTO;
-import com.mzl.flower.dto.request.point.PointGoodsUpdateDTO;
+import com.mzl.flower.dto.request.point.*;
+import com.mzl.flower.dto.response.point.CustomerPointDetailDTO;
 import com.mzl.flower.dto.response.point.PointGoodsDTO;
 import com.mzl.flower.dto.response.point.PointGoodsListDTO;
+import com.mzl.flower.dto.response.point.PointGoodsRecordDTO;
+import com.mzl.flower.entity.point.PointGoodsRecord;
 import com.mzl.flower.service.point.PointGoodsService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
@@ -47,4 +49,22 @@
         return returnData(R.SUCCESS.getCode(), pointGoodsService.getGoodsInfo(id));
     }
 
+
+    @PostMapping("/exchange")
+    @ApiOperation(value = "积分商品兑换", notes = "积分商品兑换")
+    public ResponseEntity<ReturnDataDTO> exchangeGoods(@Validated @RequestBody ExchangeGoodsDTO dto) {
+        pointGoodsService.exchangeGoods(dto);
+        return returnData(R.SUCCESS.getCode(),null);
+    }
+
+
+    @GetMapping("/exchange/list")
+    @ApiOperation(value = "积分商品兑换券列表", notes = "积分商品兑换券列表")
+    public ResponseEntity<ReturnDataDTO<Page<PointGoodsRecordDTO>>> myExchangeGoods(QueryExchangeGoodsDTO dto, Page page) {
+        return returnData(R.SUCCESS.getCode(), pointGoodsService.myExchangeGoods(dto,page));
+    }
+
+
+
+
 }

--
Gitblit v1.9.3