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