Quellcode durchsuchen

건강정보, 증상, 의료진메모 조회 시 정렬 값을 측정일시 최신순으로 수정, 메모 업데이트 쿼리 버그 수정

maengje vor 4 Jahren
Ursprung
Commit
69d47e5ab8

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

@@ -37,15 +37,13 @@
 		FROM patient_memo
 		WHERE 
 			patient_idx = #{patientIdx}
-		ORDER BY create_date DESC, idx DESC
+		ORDER BY recorded_date DESC, idx DESC
 	]]>
     </select>
     <update id="updateMemo" parameterType="PatientMemoDTO">
 	<![CDATA[
 	    UPDATE patient_memo
-	       SET contents = #{contents},
-	       	   
-	     WHERE idx = #{idx}
+	       SET contents = #{contents},  	   
 	]]>
        	<choose>
 			<when test='recordedDate != null and recordedDate != ""'>

+ 1 - 1
src/main/resources/mybatis/mapper/patient/patientPHRHistory.xml

@@ -77,7 +77,7 @@
 			patient_idx = #{patientIdx}
 		AND
 			phr_type = #{phrType}
-		ORDER BY create_date ASC, idx ASC
+		ORDER BY recorded_date ASC, idx ASC
 	]]>
     </select>
 </mapper>

+ 1 - 1
src/main/resources/mybatis/mapper/patient/patientSymptomSim.xml

@@ -70,7 +70,7 @@
 		FROM patient_symptom_sim
 		WHERE 
 			patient_idx = #{patientIdx}		
-		ORDER BY create_date DESC, idx DESC
+		ORDER BY recorded_date DESC, idx DESC
 	]]>
     </select>
 </mapper>