From 866cb2f637fa8cf6617d17bc09cdaa25f633cd21 Mon Sep 17 00:00:00 2001
From: fhx <308050795@qq.com>
Date: 星期三, 14 六月 2023 10:12:11 +0800
Subject: [PATCH] Merge branch 'fhx-prod-治疗单重构' into master-test

---
 phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalDto.java        |   22 +++++++++++
 phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipCouponService.java |    6 +++
 phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java  |    8 ++++
 phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalItemDto.java    |   24 ++++++++++++
 phis-feign/src/main/java/com/hz/his/dto/coupon/CouponDto.java                      |    7 +++
 5 files changed, 67 insertions(+), 0 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 b3ea858..3eab1ff 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
@@ -4,6 +4,8 @@
 
 import com.hz.his.dto.PageDto;
 import lombok.Data;
+
+import java.math.BigDecimal;
 import java.util.List;
 
 /**
@@ -38,4 +40,9 @@
     /*鐢ㄦ埛浼樻儬鍒�*/
     private String couponNumberId;
 
+    //寮�鍗曠粨璐︿竴璧锋墽琛屾牎楠屼紭鎯犲埜鎺ュ彛浣跨敤鍙傛暟
+    /** 浼樻儬鍒稿晢鍝丣SON鏁扮粍瀛楃 */
+    private String couponGoodsArr;
+    /** 璁㈠崟搴斾粯閲戦 */
+    private BigDecimal shouldTotal;
 }
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalDto.java
new file mode 100644
index 0000000..c25aab6
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalDto.java
@@ -0,0 +1,22 @@
+package com.hz.his.dto.order;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+/**
+ * 璁㈠崟璁$畻搴斾粯閲戦
+ * @USER: fhx
+ * @DATE: 2023/6/13
+ **/
+@Data
+public class OrderCountShouldTotalDto {
+
+    //闂ㄥ簵id
+    private String shopId;
+    //鐢ㄦ埛浼樻儬鍒�
+    private String couponNumberId;
+    //鍟嗗搧item淇℃伅
+    private List<OrderCountShouldTotalItemDto> itemDtoList;
+}
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalItemDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalItemDto.java
new file mode 100644
index 0000000..e336b12
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderCountShouldTotalItemDto.java
@@ -0,0 +1,24 @@
+package com.hz.his.dto.order;
+
+import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
+import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
+import lombok.Data;
+
+import java.math.BigDecimal;
+
+/**
+ * 璁㈠崟璁$畻搴斾粯閲戦item淇℃伅
+ * @USER: fhx
+ * @DATE: 2023/6/13
+ **/
+@Data
+public class OrderCountShouldTotalItemDto {
+    //鍟嗗搧绫诲瀷
+    private String type;
+    //鍟嗗搧id
+    private String commonId;
+    //璐拱鏁伴噺
+    private Integer buyNum;
+    //璁㈠崟鎶樻墸
+    private BigDecimal discount = BigDecimal.ZERO;
+}
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 edd3c19..c8e699a 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
@@ -49,4 +49,10 @@
      */
     @PostMapping(value = "/coupon/check/coupon")
     Result checkCoupon(@RequestBody CouponDto couponDto);
+
+    /**
+     * 寮�鏀惧钩鍙�-妫�鏌ヤ紭鎯犲埜鏄惁鍙敤 - 寮�鍗曠粨璐﹀悓鏃舵墽琛屼娇鐢�
+     */
+    @PostMapping(value = "/coupon/check/coupon/to/orderAndPay")
+    Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto);
 }
\ No newline at end of file
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java
index 13b20dc..dde47ce 100644
--- a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipOrderService.java
@@ -173,4 +173,12 @@
     @PostMapping(value = "/order/refund/cancel")
     Result refundCancel(@RequestBody RefundCancelVo refundCancelVo);
 
+
+    /**
+     * 璁$畻璁㈠崟搴斾粯閲戦
+     */
+    @PostMapping(value = "/order/countOrderShouldTotal")
+    Result countOrderShouldTotal(@RequestBody OrderCountShouldTotalDto dto);
+
+
 }
\ No newline at end of file

--
Gitblit v1.8.0