|
@@ -261,22 +261,22 @@ public class CalculateScoreLogicImpl implements CalculateSocreLogic {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public CaughtNodeDTO catchNode(CaughtNodeDTO caughtNodeDTO, Long userId) {
|
|
public CaughtNodeDTO catchNode(CaughtNodeDTO caughtNodeDTO, Long userId) {
|
|
-// //caughtNode
|
|
|
|
-// caughtNodeDTO = caughtNodeService.getCaughtNodeDTO(caughtNodeDTO.getExamId(), caughtNodeDTO.getCaseId(), caughtNodeDTO.getNodeName());
|
|
|
|
-// List<Long> userIds = caughtNodeDTO.getUserIds();
|
|
|
|
-// userIds.add(userId);
|
|
|
|
-// caughtNodeDTO.setUserIds(userIds);
|
|
|
|
-// caughtNodeDTO.setCatchNum(caughtNodeDTO.getCatchNum() + 1);
|
|
|
|
-// caughtNodeService.updateCaughtNodeDTO(caughtNodeDTO);
|
|
|
|
-//
|
|
|
|
// //userCatch
|
|
// //userCatch
|
|
// UserCatchDTO userCatchDTO = userCatchService.getUserCatchDTO(userId);
|
|
// UserCatchDTO userCatchDTO = userCatchService.getUserCatchDTO(userId);
|
|
// List<String> nodeNames = userCatchDTO.getNodeNames();
|
|
// List<String> nodeNames = userCatchDTO.getNodeNames();
|
|
// nodeNames.add(caughtNodeDTO.getNodeName());
|
|
// nodeNames.add(caughtNodeDTO.getNodeName());
|
|
// userCatchDTO.setNodeNames(nodeNames);
|
|
// userCatchDTO.setNodeNames(nodeNames);
|
|
-// if (userCatchDTO.checkNodeNameUnique()){
|
|
|
|
-// userCatchService.updateUserCatch
|
|
|
|
|
|
+// if (userCatchDTO.checkNodeNameUnique()) {
|
|
|
|
+// userCatchService.updateUserCatchDTO(userCatchDTO);
|
|
// }
|
|
// }
|
|
|
|
+// return null;
|
|
|
|
+// //caughtNode
|
|
|
|
+// caughtNodeDTO = caughtNodeService.getCaughtNodeDTO(caughtNodeDTO.getExamId(), caughtNodeDTO.getCaseId(), caughtNodeDTO.getNodeName());
|
|
|
|
+// List<Long> userIds = caughtNodeDTO.getUserIds();
|
|
|
|
+// userIds.add(userId);
|
|
|
|
+// caughtNodeDTO.setUserIds(userIds);
|
|
|
|
+// caughtNodeDTO.setCatchNum(caughtNodeDTO.getCatchNum() + 1);
|
|
|
|
+// return caughtNodeService.updateCaughtNodeDTO(caughtNodeDTO);
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|