Skip to content

Commit

Permalink
Refactor: 불필요한 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
suminiee authored May 6, 2024
2 parents 9faf159 + 1556f6d commit 220d7db
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,6 @@ public Long save(ConsultRequestDto consultReq) {
log.error("ConsultContentInfo 저장 중 오류 발생: {}", e.getMessage());
throw new RuntimeException("ConsultContentInfo 저장 중 오류 발생: " + e.getMessage());
}

// try {
// PatientInfo patientId = patientRepository.findById(consultReq.getPatientId()).get();
// ConsultContentInfo consultContentInfo = ConsultContentInfo.builder()
// .patientId(patientId)
// .providerName(consultReq.getProviderName())
// .takingDrug(consultReq.getTakingDrug())
// .consultContent(consultReq.getConsultContent())
// .build();
// consultRepository.save(consultContentInfo);
// } catch (Exception e) {
// log.error("ConsultContentInfo 저장 중 오류 발생: {}", e.getMessage());
// }
}


Expand Down Expand Up @@ -117,9 +104,4 @@ public void delete(Long consultId) {
}
}

@Override
public ConsultContentInfo findById(Long consultId) {
Optional<ConsultContentInfo> consultContentInfoOptional= consultRepository.findById(consultId);
return consultContentInfoOptional.orElse(null);
}
}

0 comments on commit 220d7db

Please sign in to comment.