接口调整

This commit is contained in:
2023-08-16 16:29:54 +08:00
parent c7fd55a58a
commit ee43dce699
15 changed files with 66 additions and 8 deletions

View File

@@ -24,4 +24,7 @@ public interface DataSetFeignClient {
@PostMapping("/getDataSet")
HttpResult<List<LineTargetVO>> getDataSet(@RequestParam("modelId") String modelId,@RequestParam("clDev") Integer clDev);
@PostMapping("/getModuleDataSet")
HttpResult<List<CsDataSet>> getModuleDataSet(@RequestParam("modelId") String modelId);
}

View File

@@ -26,5 +26,5 @@ public interface EquipmentFeignClient {
HttpResult<List<CsEquipmentDeliveryDTO>> queryDeviceById(@RequestParam("ids") List<String> ids);
@PostMapping("/updateSoftInfoBynDid")
HttpResult<Boolean> updateSoftInfoBynDid(@RequestParam("nDId") String nDid,@RequestParam("id") String id);
HttpResult<Boolean> updateSoftInfoBynDid(@RequestParam("nDId") String nDid, @RequestParam("id") String id, @RequestParam("module") Integer module);
}

View File

@@ -44,6 +44,12 @@ public class DataSetFeignClientFallbackFactory implements FallbackFactory<DataSe
log.error("{}异常,降级处理,异常为:{}","获取数据集",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<CsDataSet>> getModuleDataSet(String modelId) {
log.error("{}异常,降级处理,异常为:{}","获取子模块数据集",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}

View File

@@ -48,7 +48,7 @@ public class EquipmentFeignClientFallbackFactory implements FallbackFactory<Equi
}
@Override
public HttpResult<Boolean> updateSoftInfoBynDid(String nDid, String id) {
public HttpResult<Boolean> updateSoftInfoBynDid(String nDid, String id, Integer module) {
log.error("{}异常,降级处理,异常为:{}","根据网关id调整软件信息",cause.toString());
throw new BusinessException(finalExceptionEnum);
}