zhangxu
2022-10-18 7dced1fcca5799e047c757c390ec9a7584789613
同步中心作废订单,退款订单
2个文件已添加
1个文件已修改
40 ■■■■■ 已修改文件
phis-feign/src/main/java/com/hz/his/dto/sync/SyncUserProjectItem.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncExecutionRecordService.java 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncOrderService.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/dto/sync/SyncUserProjectItem.java
New file
@@ -0,0 +1,13 @@
package com.hz.his.dto.sync;
import lombok.Data;
/**
 * @Author
 */
@Data
public class SyncUserProjectItem {
    /**执行记录id*/
    private String orderItemId;
}
phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncExecutionRecordService.java
New file
@@ -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);
}
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);
}