diff --git a/pqs-algorithm/algorithm-api/src/main/java/com/njcn/algorithm/api/DevModelFeignClient.java b/pqs-algorithm/algorithm-api/src/main/java/com/njcn/algorithm/api/DevModelFeignClient.java index 1896efdc7..12d2496f6 100644 --- a/pqs-algorithm/algorithm-api/src/main/java/com/njcn/algorithm/api/DevModelFeignClient.java +++ b/pqs-algorithm/algorithm-api/src/main/java/com/njcn/algorithm/api/DevModelFeignClient.java @@ -11,8 +11,6 @@ import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; -import java.util.List; - /** * @author xy */ @@ -23,6 +21,6 @@ public interface DevModelFeignClient { @PostMapping("/addDevModel") HttpResult addDevModel(@RequestBody @Validated CsDevModelAddParm csDevModelAddParm); - @PostMapping("/queryEquipmentByProject") - HttpResult> queryEquipmentByProject(@RequestBody CsDevModelQueryListParm csDevModelQueryListParm); + @PostMapping("/queryDevModelOne") + HttpResult queryDevModelOne(@RequestBody CsDevModelQueryListParm csDevModelQueryListParm); } diff --git a/pqs-algorithm/algorithm-api/src/main/java/com/njcn/algorithm/api/fallback/DevModelFeignClientFallbackFactory.java b/pqs-algorithm/algorithm-api/src/main/java/com/njcn/algorithm/api/fallback/DevModelFeignClientFallbackFactory.java index dca331fdf..d3e24b9c1 100644 --- a/pqs-algorithm/algorithm-api/src/main/java/com/njcn/algorithm/api/fallback/DevModelFeignClientFallbackFactory.java +++ b/pqs-algorithm/algorithm-api/src/main/java/com/njcn/algorithm/api/fallback/DevModelFeignClientFallbackFactory.java @@ -41,7 +41,7 @@ public class DevModelFeignClientFallbackFactory implements FallbackFactory> queryEquipmentByProject(CsDevModelQueryListParm csDevModelQueryListParm) { + public HttpResult queryDevModelOne(CsDevModelQueryListParm csDevModelQueryListParm) { log.error("{}异常,降级处理,异常为:{}","查询模板版本信息",cause.toString()); throw new BusinessException(finalExceptionEnum); }