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