|
@@ -58,7 +58,7 @@ public class AlgorithmCallService {
|
|
|
algorithmCall1.setExperiment_id(algorithmCall.getExperiment_id());
|
|
|
algorithmCall1.setAlgorithm_id(algorithmCall.getAlgorithm_id());
|
|
|
algorithmCall1.setCalling_time(algorithmCall.getCalling_time());
|
|
|
- algorithmCall1.setName(algorithmCall.getPredict_results());
|
|
|
+ algorithmCall1.setPredict_results(algorithmCall.getPredict_results());
|
|
|
algorithmCall1.setDiagnosis_results(algorithmCall.getDiagnosis_results());
|
|
|
algorithmCall1.setRemarks(algorithmCall.getRemarks());
|
|
|
algorithmCall1.setMysqlId(algorithmCall.getId());
|
|
@@ -106,7 +106,7 @@ public class AlgorithmCallService {
|
|
|
algorithmCall1.setExperiment_id(data.getExperiment_id());
|
|
|
algorithmCall1.setAlgorithm_id(data.getAlgorithm_id());
|
|
|
algorithmCall1.setCalling_time(data.getCalling_time());
|
|
|
- algorithmCall1.setName(data.getPredict_results());
|
|
|
+ algorithmCall1.setPredict_results(data.getPredict_results());
|
|
|
algorithmCall1.setDiagnosis_results(data.getDiagnosis_results());
|
|
|
algorithmCall1.setRemarks(data.getRemarks());
|
|
|
algorithmCall1.setMysqlId(data.getId());
|
|
@@ -153,9 +153,37 @@ public class AlgorithmCallService {
|
|
|
|
|
|
public Result<Map<String, Object>> findExperimentKg(Integer name){
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
-// if (type == null || "".equals(type) || "all".equals(type)){
|
|
|
map.put("ExperimentAlgorithmRe", algorithmCall1Dao.findExperimentAlgorithmReById(name));
|
|
|
map.put("AlgorithmResultsRe", algorithmCall1Dao.findAlgorithmResultsReById(name));
|
|
|
return Result.success(map);
|
|
|
}
|
|
|
+
|
|
|
+ public Result<List<CommonRelationEntity>> findExperimentKg1(Integer name){
|
|
|
+ List<CommonRelationEntity> lst = new ArrayList<>();
|
|
|
+ List<ExperimentAlgorithmRelationEntity> lst1 = algorithmCall1Dao.findExperimentAlgorithmReById(name);
|
|
|
+ for (ExperimentAlgorithmRelationEntity Relation1:lst1)
|
|
|
+ {
|
|
|
+ CommonRelationEntity CRelation = new CommonRelationEntity();
|
|
|
+ CRelation.setId(Relation1.getId());
|
|
|
+ CRelation.setRelation(Relation1.getRelation());
|
|
|
+ CRelation.setStartNode(Relation1.getStartNode().getExperiment_name());
|
|
|
+ CRelation.setStartNodeId(Relation1.getStartNode().getId());
|
|
|
+ CRelation.setEndNode(Relation1.getEndNode().getName());
|
|
|
+ CRelation.setEndNodeId(Relation1.getEndNode().getId());
|
|
|
+ lst.add(CRelation);
|
|
|
+ }
|
|
|
+ List<AlgorithmResultsRelationEntity> lst2 = algorithmCall1Dao.findAlgorithmResultsReById(name);
|
|
|
+ for (AlgorithmResultsRelationEntity Relation2:lst2)
|
|
|
+ {
|
|
|
+ CommonRelationEntity CRelation = new CommonRelationEntity();
|
|
|
+ CRelation.setId(Relation2.getId());
|
|
|
+ CRelation.setRelation(Relation2.getRelation());
|
|
|
+ CRelation.setStartNode(Relation2.getStartNode().getName());
|
|
|
+ CRelation.setStartNodeId(Relation2.getStartNode().getId());
|
|
|
+ CRelation.setEndNode(Relation2.getEndNode().getPredict_results());
|
|
|
+ CRelation.setEndNodeId(Relation2.getEndNode().getId());
|
|
|
+ lst.add(CRelation);
|
|
|
+ }
|
|
|
+ return Result.success(lst);
|
|
|
+ }
|
|
|
}
|