From 700244cc88822b0b15de9aedaa717a5d1d4dac02 Mon Sep 17 00:00:00 2001 From: ANDRU-PC\Andru <769883346@qq.com> Date: 星期六, 24 十二月 2022 17:04:10 +0800 Subject: [PATCH] 添加用户资金退款方法 --- phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipRefundService.java | 30 +++++++++++++++ phis-feign/src/main/java/com/hz/his/dto/refund/RefundFundsDto.java | 45 ++++++++++++++++++++++ 2 files changed, 75 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/refund/RefundFundsDto.java b/phis-feign/src/main/java/com/hz/his/dto/refund/RefundFundsDto.java new file mode 100644 index 0000000..5d72d7d --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/refund/RefundFundsDto.java @@ -0,0 +1,45 @@ +package com.hz.his.dto.refund; + +import lombok.Data; + +import java.math.BigDecimal; + +/** + * 鐢ㄦ埛璧勯噾閫�娆綿to + */ +@Data +public class RefundFundsDto { + + // 閫�娆鹃噾棰� + private BigDecimal refundTotal; + // 鐢ㄦ埛id + private String userId; + // 闂ㄥ簵id + private String shopId; + // 鏀舵鏂� + private String payee; + // 寮�鎴疯 + private String openBank; + // 寮�鎴锋敮琛� + private String openBranch; + // 璐﹀彿 + private String account; + // 澶囨敞 + private String remarks; + // 鎿嶄綔浜虹被鍨� + private Integer operatorType; + // 鎿嶄綔浜篿d + private String operatorId; + // 骞冲彴鏉ユ簮 + private String platformSource; + + // 閫�娆炬爣璇� + private String refundId; + // 0:瀹℃牳澶辫触,1:瀹℃牳閫氳繃 + private Integer type; + // 瀹℃牳浜烘爣璇� + private String examEmplId; + + public RefundFundsDto() { + } +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipRefundService.java b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipRefundService.java new file mode 100644 index 0000000..13c6c65 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/platform/SPhipRefundService.java @@ -0,0 +1,30 @@ +package com.hz.his.feign.service.platform; + +import com.hx.resultTool.Result; +import com.hz.his.dto.refund.RefundFundsDto; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; + +/** + * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� + */ +@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-refund") +public interface SPhipRefundService { + + /** + * 鐢ㄦ埛璧勯噾閫�娆� + * @param refundFundsDto 鍙傛暟 + * @return 杩斿洖 + */ + @PostMapping("/refund/user/funds") + Result refundUserFunds(@RequestBody RefundFundsDto refundFundsDto); + + /** + * 鐢ㄦ埛璧勯噾閫�娆惧鏍� + * @param refundFundsDto 鍙傛暟 + * @return 杩斿洖 + */ + @PostMapping(value = "/refund/user/funds/approve") + Result refundUserFundsApprove(@RequestBody RefundFundsDto refundFundsDto); +} -- Gitblit v1.8.0