wzh
2022-08-03 4b718360c3c2756a5759cf326e5c03d3a7096d37
提交 | 用户 | age
ddd881 1 package com.hz.his.feign.service.phis;
7c680b 2
C 3 import com.hx.resultTool.Result;
4 import org.springframework.cloud.openfeign.FeignClient;
5 import org.springframework.web.bind.annotation.PostMapping;
6 import org.springframework.web.bind.annotation.RequestParam;
7
8 /**
9  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
10  */
11 @FeignClient(name="phis-provider",path = "/p-his-data",contextId = "orderTotal")
12 public interface SOrderGeneralService {
13
14     /**
15      * 根据his用户id查询订单数量
16      * @param hisUserId 订单数据
17      * @return
18      */
19     @PostMapping(value = "/orderTotal/selectUserOrderNum")
20     Result selectUserOrderNum(@RequestParam("hisUserId") String hisUserId);
21
22     /**
23      * 根据his推荐人用户id查询订单数量
24      * @param hisUserId 订单数据
25      * @return
26      */
27     @PostMapping(value = "/orderTotal/selectRelateOrderNum")
28     Result selectRelateOrderNum(@RequestParam("hisUserId")String hisUserId);
29 }