|
@@ -33,8 +33,19 @@
|
|
|
</if>
|
|
|
<![CDATA[
|
|
|
, #{recordedByName}
|
|
|
- , NOW())
|
|
|
]]>
|
|
|
+ <choose>
|
|
|
+ <when test='createDate != null and createDate != ""'>
|
|
|
+ <![CDATA[
|
|
|
+ , #{createDate}
|
|
|
+ ]]>
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ <![CDATA[
|
|
|
+ , NOW())
|
|
|
+ ]]>
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</insert>
|
|
|
<select id="selectPHRHistoryCount" parameterType="PatientPHRHistoryDTO" resultType="int">
|
|
|
<![CDATA[
|
|
@@ -64,7 +75,7 @@
|
|
|
patient_idx = #{patientIdx}
|
|
|
AND
|
|
|
phr_type = #{phrType}
|
|
|
- ORDER BY create_date ASC
|
|
|
+ ORDER BY create_date, idx ASC
|
|
|
]]>
|
|
|
</select>
|
|
|
</mapper>
|