|
@@ -213,7 +213,28 @@ public class APFDLogicImpl extends BaseLogic implements APFDLogic{
|
|
calculateSocreLogic.calculateExamScoreAuto(examId,workerId);
|
|
calculateSocreLogic.calculateExamScoreAuto(examId,workerId);
|
|
}
|
|
}
|
|
calculateSocreLogic.catchNode(examId,caseId,workerId,String.valueOf(System.currentTimeMillis()),dtos);
|
|
calculateSocreLogic.catchNode(examId,caseId,workerId,String.valueOf(System.currentTimeMillis()),dtos);
|
|
|
|
+
|
|
|
|
+ getMutationDTO(examId,caseId,workerId);
|
|
return dtos;
|
|
return dtos;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void getMutationDTO(Long examId, Long caseId, Long participantId){
|
|
|
|
+ MutationDTO mutationDTO;
|
|
|
|
+ try {
|
|
|
|
+ mutationDTO = analysisService.mutationAnalyze(examId, participantId, caseId);
|
|
|
|
+ List<MutationForMongoDTO> list = mongoAPIService.getMutationFromMongo(participantId, examId, caseId);
|
|
|
|
+ if(list!=null) {
|
|
|
|
+ MutationForMongoDTO mutationForMongoDTO = list.get(0);
|
|
|
|
+ mutationForMongoDTO.setMutationDTO(mutationDTO);
|
|
|
|
+ mongoAPIService.updateMutationToMongo(mutationForMongoDTO);
|
|
|
|
+ }else {
|
|
|
|
+ mongoAPIService.saveMutationToMongo(participantId, examId, caseId, mutationDTO);
|
|
|
|
+ }
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|