From 1a904b7442c73dc106732c7d0e621b89444c5929 Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期二, 06 十二月 2022 16:32:21 +0800
Subject: [PATCH] 营销助手-部分退款申请接口

---
 phis-feign/src/main/java/com/hz/his/dto/marketing/PartRefundPayDto.java        |   20 ++++++++++
 phis-feign/src/main/java/com/hz/his/dto/marketing/RefundProjectDto.java        |   18 +++++++++
 phis-feign/src/main/java/com/hz/his/feign/service/marketing/MOrderService.java |   10 +++-
 phis-feign/src/main/java/com/hz/his/dto/marketing/OrderPartRefundDto.java      |   22 +++++++++++
 4 files changed, 67 insertions(+), 3 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderPartRefundDto.java b/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderPartRefundDto.java
new file mode 100644
index 0000000..7819749
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderPartRefundDto.java
@@ -0,0 +1,22 @@
+package com.hz.his.dto.marketing;
+
+import com.hz.his.dto.order.OrdersTotalDto;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * 钀ラ攢鍔╂墜璁㈠崟閮ㄥ垎閫�娆剧敵璇峰叆鍙�
+ * @author fwq
+ */
+@Data
+public class OrderPartRefundDto extends MarketingDto{
+    /*******************蹇呭~椤�(娉ㄦ剰缁ф壙鐨勫叕鍏辩被MarketingDto)*************************/
+    /**璁㈠崟淇℃伅*/
+    private OrdersTotalDto ordersTotalDto;
+    /**閫�娆炬敮浠樻柟寮�*/
+    private List<PartRefundPayDto> partRefundPayDtoList;
+    /**閫�娆鹃」鐩�*/
+    private List<RefundProjectDto> refundProjectDtoList;
+
+}
diff --git a/phis-feign/src/main/java/com/hz/his/dto/marketing/PartRefundPayDto.java b/phis-feign/src/main/java/com/hz/his/dto/marketing/PartRefundPayDto.java
new file mode 100644
index 0000000..dac1e47
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/marketing/PartRefundPayDto.java
@@ -0,0 +1,20 @@
+package com.hz.his.dto.marketing;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+
+/**
+ * 閮ㄥ垎閫�娆剧敵璇�-鏀粯鏂瑰紡鏄庣粏
+ * */
+@Data
+public class PartRefundPayDto {
+    /**閫�娆炬敮浠樻柟寮忔爣璇�*/
+    private String payMethodId;
+    /**閫�娆炬敮浠樻柟寮忕紪鍙�*/
+    private String payMethodNo;
+    /**閫�娆炬敮浠樻柟寮忓悕绉�*/
+    private String payMethodName;
+    /**鏀粯鏂瑰紡鐨勯��娆鹃噾棰�*/
+    private BigDecimal refundMoney;
+}
diff --git a/phis-feign/src/main/java/com/hz/his/dto/marketing/RefundProjectDto.java b/phis-feign/src/main/java/com/hz/his/dto/marketing/RefundProjectDto.java
new file mode 100644
index 0000000..43aaafe
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/dto/marketing/RefundProjectDto.java
@@ -0,0 +1,18 @@
+package com.hz.his.dto.marketing;
+
+import lombok.Data;
+
+/**
+ * 閮ㄥ垎閫�娆剧敵璇�-鏀粯鏂瑰紡鏄庣粏
+ * */
+@Data
+public class RefundProjectDto {
+    /**閫�鐨勯」鐩爣璇�*/
+    private String projectId;
+    /**閫�鐨勯」鐩紪鍙�*/
+    private String projectNo;
+    /**閫�鐨勯」鐩悕绉�*/
+    private String projectName;
+    /**閫�鐨勯」鐩暟閲�*/
+    private Integer refundNum;
+}
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/marketing/MOrderService.java b/phis-feign/src/main/java/com/hz/his/feign/service/marketing/MOrderService.java
index 3b663d6..523328a 100644
--- a/phis-feign/src/main/java/com/hz/his/feign/service/marketing/MOrderService.java
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/marketing/MOrderService.java
@@ -3,12 +3,10 @@
 import com.hx.resultTool.Result;
 import com.hz.his.dto.marketing.OrderCancelDto;
 import com.hz.his.dto.marketing.OrderDiscountDto;
+import com.hz.his.dto.marketing.OrderPartRefundDto;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestParam;
-
-import java.math.BigDecimal;
 
 /**
  * 钀ラ攢鍔╂墜
@@ -30,4 +28,10 @@
     Result applyOrderCancel(@RequestBody OrderCancelDto orderCancelDto);
 
 
+    /**
+     * 璁㈠崟閮ㄥ垎閫�娆剧敵璇�
+     */
+    @PostMapping(value = "/order/apply/part/refund")
+    Result applyPartRefund(@RequestBody OrderPartRefundDto orderPartRefundDto);
+
 }

--
Gitblit v1.8.0