From e8dcf5b92ff69d87dce492b6663305ae4f5cb59c Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期三, 26 四月 2023 11:59:14 +0800
Subject: [PATCH] 优惠券校验接口

---
 phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckItemDto.java     |   49 ++++++++++++++++++++++++
 phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckDto.java         |   25 ++++++++++++
 phis-feign/src/main/java/com/hz/his/feign/service/phis/SCouponService.java |   12 ++++--
 3 files changed, 82 insertions(+), 4 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckDto.java
new file mode 100644
index 0000000..643be7e
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckDto.java
@@ -0,0 +1,25 @@
+package com.hz.his.dto.coupon;
+
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+/**
+ * 浼樻儬鍒告牎楠屾墿灞�
+ * @author fwq
+ */
+@Data
+public class CouponCheckDto {
+
+    /**鐢ㄦ埛浼樻儬鍒哥爜鏍囪瘑闆嗗悎*/
+    private List<String> couponNumberIdList;
+
+    /**鍟嗗搧鎬婚噾棰�*/
+    private BigDecimal total;
+    /**鍟嗗搧鎬讳欢鏁�*/
+    private Integer itemNum;
+    /**鍟嗗搧淇℃伅*/
+    private List<CouponCheckItemDto> goodsList;
+}
diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckItemDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckItemDto.java
new file mode 100644
index 0000000..3aef17c
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponCheckItemDto.java
@@ -0,0 +1,49 @@
+package com.hz.his.dto.coupon;
+
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+/**
+ * 浼樻儬鍒告牎楠�-鍟嗗搧淇℃伅
+ */
+@Data
+public class CouponCheckItemDto{
+    /**鍟嗗搧sku鏍囪瘑*/
+    private String skuId;
+    /**鍟嗗搧绫诲瀷*/
+    private Integer goodsType;
+    /**鍟嗗搧鎵�灞炲垎绫绘爣璇嗛泦鍚�*/
+    private List<String> typeIdList;
+    /**鍟嗗搧phis鏍囪瘑*/
+    private String hisId;
+    /**鍟嗗搧phis绫诲瀷*/
+    private String hisType;
+    /**鍗曚釜鍟嗗搧閲戦*/
+    private BigDecimal price;
+    /**璐拱鏁伴噺*/
+    private Integer buyNum;
+
+
+    /**绫诲瀷-椤圭洰*/
+    public static final String TYPE_PROJECT = "project";
+    /**绫诲瀷-鍟嗗搧/鑽搧*/
+    public static final String TYPE_RETAIL = "retail";
+    /**绫诲瀷-鍗¢」*/
+    public static final String TYPE_CARD = "card";
+    /**绫诲瀷-淇冮攢*/
+    public static final String TYPE_PROMOTION = "promotion";
+    /**绫诲瀷-澧炲�奸噾*/
+    public static final String TYPE_INCREMENT = "increment";
+    /**绫诲瀷-鍌ㄥ�奸噾*/
+    public static final String TYPE_STORED = "stored";
+    /**绫诲瀷-绉垎*/
+    public static final String TYPE_INTEGRAL = "integral";
+    /**绫诲瀷-鍥㈣喘鍟嗗搧*/
+    public static final String TYPE_COMMODITY = "commodity";
+    /**绫诲瀷-绉垎鍟嗗搧*/
+    public static final String TYPE_GOODS_INTEGRAL = "goods_integral";
+
+}
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 03821bd..ff8c45a 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
@@ -2,10 +2,7 @@
 
 
 import com.hx.resultTool.Result;
-import com.hz.his.dto.coupon.CouponDetailDto;
-import com.hz.his.dto.coupon.CouponDto;
-import com.hz.his.dto.coupon.CouponGoodsDto;
-import com.hz.his.dto.coupon.CouponListDetailDto;
+import com.hz.his.dto.coupon.*;
 import com.hz.his.dto.dictionaries.DictionariesDto;
 import com.hz.phis.dt.marketingCoupon.MarketingCouponDto;
 import org.springframework.cloud.openfeign.FeignClient;
@@ -102,4 +99,11 @@
      */
     @PostMapping(value = "/marketing/data")
     Result marketingData(@RequestBody(required = false) MarketingCouponDto marketingCouponDto);
+
+
+    /**
+     * 浼樻儬鍒哥粺涓�鏍¢獙鎺ュ彛
+     */
+    @PostMapping(value = "/coupon/unify/check")
+    Result unifyCheck(@RequestBody(required = false) CouponCheckDto couponCheckDto);
 }

--
Gitblit v1.8.0