From 9ae1308afe817d5d7a49d58fb24f9fb51c485f9d Mon Sep 17 00:00:00 2001
From: fhx <308050795@qq.com>
Date: 星期四, 29 六月 2023 16:44:28 +0800
Subject: [PATCH] Merge branch 'fhx-prod-兑换优惠券' into master-test

---
 phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java                    |    8 ++++
 phis-feign/src/main/java/com/hz/his/dto/coupon/CouponRecordDto.java                |    4 ++
 phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDetailDt.java             |    7 +++
 phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java |    9 ++++
 phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java                |    2 +
 phis-feign/src/main/java/com/hz/his/feign/service/phis/SConsumablesService.java    |    7 +++
 phis-feign/src/main/java/com/hz/his/dto/order/OrdersPHisTotalDto.java              |    3 +
 phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java                      |    4 ++
 phis-feign/src/main/java/com/hz/his/dto/coupon/CouponItemDto.java                  |   11 +++++
 phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java             |   44 ++++++++++++++++++++++
 10 files changed, 97 insertions(+), 2 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java
index 3eab1ff..d9e6954 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java
@@ -20,6 +20,8 @@
     private String operatorId;
     /**鎿嶄綔浜哄悕绉�*/
     private String operatorName;
+    /**鎿嶄綔浜虹被鍨�*/
+    private Integer operatorType;
     /**娲诲姩鏍囪瘑*/
     private String groupBuyId;
     private String id;
@@ -40,6 +42,8 @@
     /*鐢ㄦ埛浼樻儬鍒�*/
     private String couponNumberId;
 
+
+
     //寮�鍗曠粨璐︿竴璧锋墽琛屾牎楠屼紭鎯犲埜鎺ュ彛浣跨敤鍙傛暟
     /** 浼樻儬鍒稿晢鍝丣SON鏁扮粍瀛楃 */
     private String couponGoodsArr;
diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponItemDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponItemDto.java
index 8402cc6..d2c7327 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponItemDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponItemDto.java
@@ -11,8 +11,17 @@
 
     /**浼樻儬鍒告爣璇�*/
     private String couponId;
-
     /**鏁伴噺*/
     private Integer num;
 
+    //澶氫紭鎯犲埜鍙戞斁鏃朵娇鐢ㄥ瓧娈�
+    /**鎵规鍙峰悕绉�*/
+    private String recordName;
+    /**鍏叡鏍囪瘑*/
+    private String commonId;
+    /**鍏叡瀛愭爣璇�*/
+    private String commonItemId;
+    /**鍏叡绫诲瀷(CouponRecordDto)*/
+    private String commonType;
+
 }
diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponRecordDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponRecordDto.java
index a76c56d..82af4b1 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponRecordDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/CouponRecordDto.java
@@ -16,6 +16,8 @@
     private String recordName;
     /**鍏叡鏍囪瘑*/
     private String commonId;
+    /**鍏叡瀛愭爣璇�*/
+    private String commonItemId;
     /**鍏叡绫诲瀷*/
     private String commonType;
 
@@ -35,4 +37,6 @@
     public static final String TYPE_COMMON_QUEEN_DAY = "queen_day";
     /**鍏叡鏍囪瘑绫诲瀷,crm鍟嗗搧璇︽儏棰嗗彇浼樻儬鍒�*/
     public static final String TYPE_COMMON_GOODS_DETAILS = "goods_details";
+    /**鍏叡鏍囪瘑绫诲瀷,璁㈠崟璐拱浼樻儬鍒�*/
+    public static final String TYPE_COMMON_ORDER = "order";
 }
diff --git a/phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java b/phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java
new file mode 100644
index 0000000..8c33864
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/coupon/OrderSendCouponDto.java
@@ -0,0 +1,44 @@
+package com.hz.his.dto.coupon;
+
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * 璁㈠崟鍙戞斁浼樻儬鍒竏to
+ * @USER: fhx
+ * @DATE: 2023/6/27
+ **/
+@Data
+public class OrderSendCouponDto {
+
+    /**鐢ㄦ埛淇℃伅*/
+    UserArrDto userArrDto;
+
+    /** 浼樻儬鍒镐俊鎭垪琛� */
+    private List<CouponItemDto> itemDtoList;
+
+    /**鏉ユ簮缂栫爜,鍟嗘埛鑷畾涔夋湇鍔℃潵婧愭爣璇�*/
+    private String appIdCode;
+    /**鎿嶄綔浜烘爣璇�*/
+    private String operatorId;
+    /**鎿嶄綔浜哄悕绉�*/
+    private String operatorName;
+    /**鎿嶄綔浜虹被鍨�*/
+    private Integer operatorType;
+
+
+    //--------------------------------------------------------------------
+    //瀵瑰簲phis琛–ouponReleaseRecord甯搁噺
+    /**鎿嶄綔浜虹被鍨�-鍛樺伐*/
+    public static Integer OPERATOR_TYPE_EMPLOYEES = 0;
+    /**鎿嶄綔浜虹被鍨�-绠$悊鍛�*/
+    public static Integer OPERATOR_TYPE_ADMIN = 1;
+    /**鎿嶄綔浜虹被鍨�-鐢ㄦ埛鑷*/
+    public static Integer OPERATOR_TYPE_USER = 2;
+    /**鎿嶄綔浜虹被鍨�-绯荤粺*/
+    public static Integer OPERATOR_TYPE_SYSTEM = 3;
+    /**鎿嶄綔浜虹被鍨�-鐢ㄦ埛璁㈠崟璐拱*/
+    public static Integer OPERATOR_TYPE_USER_ORDER = 4;
+
+}
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java
index caca455..2992a9f 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java
@@ -20,6 +20,8 @@
     private BigDecimal total;
     /**蹇呭~ 瀛愬崟鎬荤Н鍒嗭紝瀹炰粯绉垎(鏆傛椂鐢ㄤ笉涓�)*/
     private BigDecimal totalIntegral;
+    /**闈炲繀濉� 瀛愬崟鎬荤Н鍒嗭紝寮�鍗曟椂搴斾粯鎬荤Н鍒�(CRM绉垎璁㈠崟鏃跺繀濉�)*/
+    private BigDecimal totalPoints;
     /**闈炲繀濉� 鎶樻墸(鍗曚綅:鐧惧垎姣�) 蹇呭~锛岄粯璁�100,涓嶄紶鍚庡彴榛樿100*/
     private BigDecimal discount;
     /**蹇呭~ 璐拱鏁伴噺 蹇呭~锛岄粯璁�0*/
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrdersPHisTotalDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrdersPHisTotalDto.java
index 3590a52..60a9bc3 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/OrdersPHisTotalDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrdersPHisTotalDto.java
@@ -65,6 +65,9 @@
     /**蹇呭~ 璁㈠崟鎬婚噾棰�(璁㈠崟绫诲瀷鏄厖鍊艰鍗曞繀濉�,鍚﹀垯闈炲繀濉�) */
     private BigDecimal total;
 
+    /**闈炲繀濉� 璁㈠崟鎬荤Н鍒�(璁㈠崟绫诲瀷鏄Н鍒嗚鍗曞繀濉�,鍚﹀垯闈炲繀濉�) */
+    private BigDecimal totalPoints;
+
     /**闈炲繀濉� 璁㈠崟鍏朵粬淇℃伅(娌℃湁鍚庡彴榛樿)*/
     private OrderInfoDto orderInfo;
 
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java
index 4e5fccc..a92147a 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java
@@ -22,4 +22,12 @@
     private String cardEquityId;
     /**闈炲繀濉� 鍗″寘鏍囪瘑:鍗¢」鏀粯蹇呬紶*/
     private String userCardId;
+
+    /**
+     * 鏍囪瀛楁锛岄粯璁�0
+     * 鏀粯鏂瑰紡涓虹Н鍒嗘椂锛�
+     * isDel=100锛屽垯phis杩欒竟闇�瑕佹墸鍑忕敤鎴风Н鍒�
+     * isDel=101锛屽垯phis杩欒竟涓嶉渶瑕佹墸鍑忕敤鎴风Н鍒�
+     */
+    private Integer isDel = 0;
 }
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SConsumablesService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SConsumablesService.java
index d745c62..57fef07 100644
--- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SConsumablesService.java
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SConsumablesService.java
@@ -35,4 +35,11 @@
      */
     @PostMapping(value = "/consumables/update/list")
     Result getUpdateConsumables(@RequestBody ConsumablesDto consumablesDto);
+
+    /**
+     * 鑾峰彇浼樻儬鍒稿晢鍝佸垪琛�
+     * @return Result
+     */
+    @PostMapping(value = "/consumables/coupon/list")
+    Result getConsumablesCouponList(@RequestBody PageDto pageDto);
 }
\ No newline at end of file
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java
index c8e699a..9364e5f 100644
--- a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java
@@ -2,6 +2,7 @@
 
 import com.hx.resultTool.Result;
 import com.hz.his.dto.coupon.CouponDto;
+import com.hz.his.dto.coupon.OrderSendCouponDto;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -55,4 +56,12 @@
      */
     @PostMapping(value = "/coupon/check/coupon/to/orderAndPay")
     Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto);
+
+    /**
+     * 寮�鏀惧钩鍙�-璁㈠崟鍙戞斁浼樻儬鍒�
+     */
+    @PostMapping(value = "/coupon/order/send/coupon")
+    Result orderSendCoupon(@RequestBody OrderSendCouponDto couponDto);
+
+
 }
\ No newline at end of file
diff --git a/phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDetailDt.java b/phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDetailDt.java
index b92d257..a08b8de 100644
--- a/phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDetailDt.java
+++ b/phis-feign/src/main/java/com/hz/phis/dt/consumables/GoodsDetailDt.java
@@ -12,7 +12,7 @@
  * */
 @Data
 public class GoodsDetailDt extends BaseDt {
-    /**绫诲瀷(1鍟嗗搧2鑽搧)*/
+    /**绫诲瀷(1鍟嗗搧2鑽搧3浼樻儬鍒�)*/
     private Integer type;
     /**缂栧彿*/
     private String serialNumber;
@@ -172,4 +172,9 @@
     private String bigTypeCode;
     /**鑽搧澶х被鍚�*/
     private String bigTypeName;
+
+    //鍏宠仈鏍囪瘑(绫诲瀷涓�3鍒欏叧鑱斾紭鎯犲埜id)
+    public String commonId;
+    //鍏戞崲绉垎
+    private BigDecimal integral;
 }

--
Gitblit v1.8.0