junekeunsong преди 4 години
родител
ревизия
92fe279fe8
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      src/main/java/com/lemon/lifecenter/controller/PatientController.java

+ 4 - 0
src/main/java/com/lemon/lifecenter/controller/PatientController.java

@@ -207,6 +207,10 @@ public class PatientController extends LifeCenterController {
             dto.setSymptomStartDate( null );
         }
         
+        if (dto.getExpectedDischargeDate() != null && dto.getExpectedDischargeDate().equals("")) {
+            dto.setExpectedDischargeDate(null);
+        }
+        
         patientService.insertPatientCare( dto );  // 환지 기본정보 insert
         
         int patientIdx = dto.getPatientIdx();