From c92fe3a219cbf3a4006dc91d5fb6fc566fd22d72 Mon Sep 17 00:00:00 2001 From: zhangxu <3%usVi4iXbVkhI1c> Date: 星期一, 26 十二月 2022 11:38:15 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master-test' into master-test --- 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 | 47 +++++++++++++++++++++++ 2 files changed, 77 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..96ab902 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/refund/RefundFundsDto.java @@ -0,0 +1,47 @@ +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 applyId; + // 閫�娆炬爣璇� + 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