From fba9f25faeb45e35e3a16ea3ebde292eb5483438 Mon Sep 17 00:00:00 2001 From: zhangxu <3%usVi4iXbVkhI1c> Date: 星期二, 06 十二月 2022 18:45:53 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master-test' into master-test --- 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 | 25 ++++++++++++ 4 files changed, 70 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..0f6c7e5 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/marketing/OrderPartRefundDto.java @@ -0,0 +1,25 @@ +package com.hz.his.dto.marketing; + +import com.hz.his.dto.order.OrdersTotalDto; +import lombok.Data; + +import java.math.BigDecimal; +import java.util.List; + +/** + * 钀ラ攢鍔╂墜璁㈠崟閮ㄥ垎閫�娆剧敵璇峰叆鍙� + * @author fwq + */ +@Data +public class OrderPartRefundDto extends MarketingDto{ + /*******************蹇呭~椤�(娉ㄦ剰缁ф壙鐨勫叕鍏辩被MarketingDto)*************************/ + /**璁㈠崟淇℃伅*/ + private OrdersTotalDto ordersTotalDto; + /**鏈閫�娆剧敵璇锋�婚噾棰�*/ + private BigDecimal refundTotal; + /**鏈閫�娆炬敮浠樻柟寮�*/ + 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