|
@@ -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 != ""'>
|