Browse Source

[소스] 코드 정리.

(cherry picked from commit 5b9605eb150625d25114ad006e5612adf5b1bd07)
sjpark 4 years ago
parent
commit
2cbc1e2238
1 changed files with 15 additions and 15 deletions
  1. 15 15
      src/main/java/com/lemon/lifecenter/controller/ClinicController.java

+ 15 - 15
src/main/java/com/lemon/lifecenter/controller/ClinicController.java

@@ -256,21 +256,21 @@ public class ClinicController extends LifeCenterController {
 	public @ResponseBody String insertPhrDataAPI(@ModelAttribute("dto") final PatientPHRHistoryDTO dto) {
 
 		try {
-      phrService.insertPHR(dto);
-      if (dto.getPhrValueExtra() != null) {
-        PatientPHRHistoryDTO pulseRateDto = new PatientPHRHistoryDTO();
-        pulseRateDto.setPatientIdx(dto.getPatientIdx());
-        pulseRateDto.setPhrType("pulseRate");
-        pulseRateDto.setPhrValue(dto.getPhrValueExtra());
-        pulseRateDto.setRecordedByName(dto.getRecordedByName());
-        if (dto.getRecordedById() != null) {
-          pulseRateDto.setRecordedById(dto.getRecordedById());
-        }
-        if (dto.getRecordedDate() != null) {
-          pulseRateDto.setRecordedDate(dto.getRecordedDate());
-        }
-        phrService.insertPHR(pulseRateDto);
-      }
+			phrService.insertPHR(dto);
+			if (dto.getPhrValueExtra() != null) {
+		        PatientPHRHistoryDTO pulseRateDto = new PatientPHRHistoryDTO();
+		        pulseRateDto.setPatientIdx(dto.getPatientIdx());
+		        pulseRateDto.setPhrType("pulseRate");
+		        pulseRateDto.setPhrValue(dto.getPhrValueExtra());
+		        pulseRateDto.setRecordedByName(dto.getRecordedByName());
+		        if (dto.getRecordedById() != null) {
+		          pulseRateDto.setRecordedById(dto.getRecordedById());
+		        }
+		        if (dto.getRecordedDate() != null) {
+		          pulseRateDto.setRecordedDate(dto.getRecordedDate());
+		        }
+		        phrService.insertPHR(pulseRateDto);
+			}
 
 			JSONObject json = new JSONObject();