zhouxiang
2022-08-31 a2379bde85121aea8716f709a859f31775e8fd46
Merge branch 'master' of http://1.15.4.62/r/~chenjiahe/phis-service-feign
1个文件已添加
2个文件已修改
32 ■■■■■ 已修改文件
phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncOrderService.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserService.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/phis/dt/user/UserDt.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncOrderService.java
New file
@@ -0,0 +1,25 @@
package com.hz.his.feign.service.sync;
/**
 * @Author
 */
import com.hx.resultTool.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
 * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
 */
@FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-order")
public interface SyncOrderService {
    /**
     * 根据用户id获取领健订单信息
     * @param orderId
     * @return
     */
    @PostMapping(value = "/sync/order/getOrderById")
    Result getOrderById(@RequestParam("orderId") String orderId);
}
phis-feign/src/main/java/com/hz/his/feign/service/sync/SyncUserService.java
@@ -4,10 +4,9 @@
 * @Author
 */
import com.hx.resultTool.Result;
import net.sf.json.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import com.hx.resultTool.Result;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
phis-feign/src/main/java/com/hz/phis/dt/user/UserDt.java
@@ -49,6 +49,8 @@
    private String channelCategory;
    /**所属门店*/
    private String shopId;
    /**所属门店名称*/
    private String shopName;
    /**用户角色*/
    private String userRole;
    /**用户类型*/
@@ -57,4 +59,6 @@
    private String hisCorpUserId;
    /**所属顾问(销售顾问)*/
    private String hisCorpUser;
    /**性别*/
    private Integer gender;
}