就诊列表按时间排序修改

master
chenfei 2 years ago
parent 4d3942600f
commit 358f5b80af

@ -210,7 +210,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="startTime == null and endTime != '' and endTime != null "> and tr.create_time &lt;= #{endTime}</if> <if test="startTime == null and endTime != '' and endTime != null "> and tr.create_time &lt;= #{endTime}</if>
<if test="startTime != null and endTime != null "> and tr.create_time between #{startTime} and #{endTime}</if> <if test="startTime != null and endTime != null "> and tr.create_time between #{startTime} and #{endTime}</if>
</where> </where>
<if test="doctorOder !=null and firstVisitOder!=null" >order by tr.create_time ${doctorOder}, tp.create_time ${firstVisitOder}</if> <if test="doctorOder !=null" >order by tr.create_time ${doctorOder}</if>
<if test="firstVisitOder!=null" >order by tp.create_time ${firstVisitOder}</if>
</select> </select>
<select id="selectTRecordById" parameterType="Long" resultMap="TRecordResult"> <select id="selectTRecordById" parameterType="Long" resultMap="TRecordResult">

Loading…
Cancel
Save