Quellcode durchsuchen

환자 상태값 텍스트를 입소 ⇒ 입소(지정), 퇴소 ⇒ 퇴소(해제) 로 변경

huiwonseo vor 4 Jahren
Ursprung
Commit
1e8c079e32

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

@@ -1026,7 +1026,7 @@ public class PatientController extends LifeCenterController {
             cell6.setCellValue( confirmationDate );
             cell7.setCellValue( hospitalizationDate );
             cell8.setCellValue( expecteDischargeDate );
-            if (state.equals("입소")) {
+            if (state.equals("입소(지정)")) {
                 cell9.setCellValue( state );
             } else {
                 cell9.setCellValue( state + "(" + disisolationDate + ")" );

+ 2 - 2
src/main/resources/mybatis/mapper/patient/patient.xml

@@ -132,8 +132,8 @@
                    DATE_FORMAT(CONFIRMATION_DATE, '%Y-%m-%d')                          AS confirmationDate,
                    DATE_FORMAT(EXPECTED_DISCHARGE_DATE, '%Y-%m-%d')                    AS expectedDischargeDate,
                    DATE_FORMAT(DISISOLATION_DATE, '%Y-%m-%d')                          AS disisolationDate,
-                   CASE WHEN STATE = 'H' THEN '입소'
-                        WHEN STATE = 'D' THEN '퇴소'
+                   CASE WHEN STATE = 'H' THEN '입소(지정)'
+                        WHEN STATE = 'D' THEN '퇴소(해제)'
                         WHEN STATE = 'T' THEN '지정병원 이송'
                         WHEN STATE = 'E' THEN '기타'
                         ELSE ''

+ 2 - 2
src/main/webapp/WEB-INF/jsp/include/patientInfo.jsp

@@ -120,8 +120,8 @@
         </td>
         <th>상태</th>
         <td>
-            <c:if test="${info.state eq 'H'}">입소</c:if>
-            <c:if test="${info.state eq 'D'}">퇴소</c:if>
+            <c:if test="${info.state eq 'H'}">입소(지정)</c:if>
+            <c:if test="${info.state eq 'D'}">퇴소(해제)</c:if>
             <c:if test="${info.state eq 'T'}">지정병원 이송</c:if>
             <c:if test="${info.state eq 'E'}">기타</c:if>
         </td>

+ 2 - 2
src/main/webapp/WEB-INF/jsp/patient/edit.jsp

@@ -409,8 +409,8 @@ $( function(){
                                                     <th>상태</th>
                                                     <td>
                                                         <select class="custom-select" id="state" name="state">
-                                                            <option value="H" <c:if test="${patientData.state eq 'H'}">selected="selected"</c:if>>입소</option>
-                                                            <option value="D" <c:if test="${patientData.state eq 'D'}">selected="selected"</c:if>>퇴소</option>
+                                                            <option value="H" <c:if test="${patientData.state eq 'H'}">selected="selected"</c:if>>입소(지정)</option>
+                                                            <option value="D" <c:if test="${patientData.state eq 'D'}">selected="selected"</c:if>>퇴소(해제)</option>
                                                             <option value="T" <c:if test="${patientData.state eq 'T'}">selected="selected"</c:if>>지정병원 이송</option>
                                                             <option value="E" <c:if test="${patientData.state eq 'E'}">selected="selected"</c:if>>기타</option>
                                                         </select>