From bea7959e893b5fb9cad1f3af9358dc4993a65ca0 Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期四, 27 四月 2023 17:58:42 +0800
Subject: [PATCH] 优惠券重复判断逻辑

---
 phis-feign/src/main/java/com/hz/phis/dt/coupon/CouponCheckDt.java          |    2 +-
 phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java |    7 +++++++
 phis-feign/src/main/java/com/hz/his/dto/coupon/CouponListDto.java          |   22 ++++++++++++++++++++++
 3 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponListDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponListDto.java
new file mode 100644
index 0000000..a59d584
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponListDto.java
@@ -0,0 +1,22 @@
+package com.hz.his.dto.coupon;
+
+
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * 鍙敤浼樻儬鍒稿垪琛ㄥ弬鏁�
+ * @author fwq
+ */
+@Data
+public class CouponListDto{
+    /**鐢ㄦ埛鏍囪瘑*/
+    private String userId;
+    /**鐢ㄦ埛浼樻儬鍒哥爜鏍囪瘑闆嗗悎*/
+    private List<String> couponNumberIdList;
+    /**鍟嗗搧淇℃伅*/
+    private List<CouponCheckItemDto> goodsList;
+    /**浼樻儬鍒稿钩鍙�*/
+    private String platform;
+}
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java
index ff8c45a..6674546 100644
--- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java
@@ -106,4 +106,11 @@
      */
     @PostMapping(value = "/coupon/unify/check")
     Result unifyCheck(@RequestBody(required = false) CouponCheckDto couponCheckDto);
+
+    /**
+     * 鐢ㄦ埛-鍙敤浼樻儬鍒稿垪琛�-缁熶竴鏍¢獙鐗堟湰
+     * @return canUseCouponList鍙敤鍒稿垪琛� canUseCount鍙敤鍒告暟閲�
+     * */
+    @PostMapping(value = "/coupon/user/unify/check/list")
+    Result userCouponCheckList(@RequestBody(required = false) CouponListDto couponListDto);
 }
diff --git a/phis-feign/src/main/java/com/hz/phis/dt/coupon/CouponCheckDt.java b/phis-feign/src/main/java/com/hz/phis/dt/coupon/CouponCheckDt.java
index 499089a..065a0b6 100644
--- a/phis-feign/src/main/java/com/hz/phis/dt/coupon/CouponCheckDt.java
+++ b/phis-feign/src/main/java/com/hz/phis/dt/coupon/CouponCheckDt.java
@@ -8,7 +8,7 @@
 @Data
 public class CouponCheckDt {
     /**鏄惁鍙敤*/
-    private boolean isCanUse;
+    private Boolean isCanUse;
     /**涓嶅彲鐢ㄦ彁绀�*/
     private String unavailableMsg;
 }

--
Gitblit v1.8.0