From 7dced1fcca5799e047c757c390ec9a7584789613 Mon Sep 17 00:00:00 2001 From: zhangxu <3%usVi4iXbVkhI1c> Date: 星期二, 18 十月 2022 14:32:16 +0800 Subject: [PATCH] 同步中心作废订单,退款订单 --- phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncOrderService.java | 5 +++-- phis-feign/src/main/java/com/hz/his/dto/sync/SyncUserProjectItem.java | 13 +++++++++++++ phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncExecutionRecordService.java | 22 ++++++++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/sync/SyncUserProjectItem.java b/phis-feign/src/main/java/com/hz/his/dto/sync/SyncUserProjectItem.java new file mode 100644 index 0000000..3894b8b --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/sync/SyncUserProjectItem.java @@ -0,0 +1,13 @@ +package com.hz.his.dto.sync; + +import lombok.Data; + +/** + * @Author + */ +@Data +public class SyncUserProjectItem { + + /**鎵ц璁板綍id*/ + private String orderItemId; +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncExecutionRecordService.java b/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncExecutionRecordService.java new file mode 100644 index 0000000..f8e3e08 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncExecutionRecordService.java @@ -0,0 +1,22 @@ +package com.hz.his.feign.service.sync; + +import com.hx.resultTool.Result; +import com.hz.his.dto.sync.SyncUserProjectItem; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PostMapping; + +/** + * @Author + */ +@FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-executionRecord") +public interface SyncExecutionRecordService { + + /** + * 淇敼棰嗗仴鐢ㄦ埛寰呮墽琛屾暟鎹负浣滃簾璁板綍 + * 娉ㄦ剰涓嶈闅忔剰璋冪敤锛岄渶瑕佺敤鍒板厛鍜屽悓姝ヤ腑蹇冨晢閲� + * @param syncUserProjectItem + * @return + */ + @PostMapping(value = "/sync/executionRecord/updateUserProjectItm") + Result updateUserProjectItm(SyncUserProjectItem syncUserProjectItem); +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncOrderService.java b/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncOrderService.java index 7d7d8f3..e97ce7a 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncOrderService.java +++ b/phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncOrderService.java @@ -8,6 +8,7 @@ import com.hz.his.dto.sync.SyncOrderDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; /** @@ -30,7 +31,7 @@ * @param syncOrderDto * @return */ - @GetMapping(value = "/sync/order/cancelOrder") + @PostMapping(value = "/sync/order/cancelOrder") Result cancelOrder(SyncOrderDto syncOrderDto); /** @@ -39,7 +40,7 @@ * @param syncOrderDto * @return */ - @GetMapping(value = "/sync/order/refundOrder") + @PostMapping(value = "/sync/order/refundOrder") Result refundOrder(SyncOrderDto syncOrderDto); } -- Gitblit v1.8.0