package com.hz.his.feign.service;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.List;
|
|
/**
|
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
|
*/
|
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "useProject")
|
public interface SOrderUseProjectService {
|
|
/**
|
* 根据id查询是否有使用记录,返回使用次数
|
* @param idList id集合(订单项与订单子项id)
|
* @return Integer
|
*/
|
@PostMapping(value = "/project/use/getProjectUseNum")
|
Integer getProjectUseNum(@RequestParam("idList") List<String> idList, @RequestParam("orderId") String orderId);
|
}
|