|
|
@ -396,7 +396,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="queryRecordListByPHDids" parameterType="TPatientHospitalDoctor" resultType="TRecordResp">
|
|
|
|
<select id="queryRecordListByPHDids" parameterType="TPatientHospitalDoctor" resultType="TRecordResp">
|
|
|
|
<include refid="selectTRecordWithOutResult"/>
|
|
|
|
<include refid="selectTRecordWithResult"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="patientId != null and patientId != ''"> and tr.patient_id = #{patientId}</if>
|
|
|
|
<if test="patientId != null and patientId != ''"> and tr.patient_id = #{patientId}</if>
|
|
|
|
<if test="doctorId != null and doctorId != ''"> and tr.doctor_id = #{doctorId}</if>
|
|
|
|
<if test="doctorId != null and doctorId != ''"> and tr.doctor_id = #{doctorId}</if>
|
|
|
|