提交 | 用户 | age
|
7c680b
|
1 |
package com.hz.his.feign.service; |
C |
2 |
|
|
3 |
import org.springframework.cloud.openfeign.FeignClient; |
|
4 |
import org.springframework.web.bind.annotation.PostMapping; |
|
5 |
import org.springframework.web.bind.annotation.RequestParam; |
|
6 |
|
|
7 |
import java.util.List; |
|
8 |
|
|
9 |
/** |
|
10 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
11 |
*/ |
|
12 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "useProject") |
|
13 |
public interface SOrderUseProjectService { |
|
14 |
|
|
15 |
/** |
|
16 |
* 根据id查询是否有使用记录,返回使用次数 |
|
17 |
* @param idList id集合(订单项与订单子项id) |
|
18 |
* @return Integer |
|
19 |
*/ |
|
20 |
@PostMapping(value = "/project/use/getProjectUseNum") |
|
21 |
Integer getProjectUseNum(@RequestParam("idList") List<String> idList, @RequestParam("orderId") String orderId); |
|
22 |
} |