|
|
|
@ -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 <= #{endTime}</if>
|
|
|
|
|
<if test="startTime != null and endTime != null "> and tr.create_time between #{startTime} and #{endTime}</if>
|
|
|
|
|
</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 id="selectTRecordById" parameterType="Long" resultMap="TRecordResult">
|
|
|
|
|