|
|
|
@ -43,14 +43,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
tr.create_time AS waitingTime,
|
|
|
|
|
tr.ai_result_return_time AS aiResultReturnTime,
|
|
|
|
|
tr.ai_result_modify_time AS aiResultModifyTime,
|
|
|
|
|
tr.img_sx AS imgSx,
|
|
|
|
|
tr.img_sm AS imgSm,
|
|
|
|
|
td.NAME AS doctorName,
|
|
|
|
|
tp.identifier,
|
|
|
|
|
tp.NAME AS patientName,
|
|
|
|
|
tp.sex,
|
|
|
|
|
tp.age,
|
|
|
|
|
tp.disease,
|
|
|
|
|
tp.img_sx AS imgSx,
|
|
|
|
|
tp.img_sm AS imgSm,
|
|
|
|
|
tp.create_time AS firstTime
|
|
|
|
|
FROM
|
|
|
|
|
t_record tr
|
|
|
|
@ -277,15 +277,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<select id="selectById" parameterType="Long" resultType="TRecordResp">
|
|
|
|
|
<include refid="selectTRecordWithResult"/>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
where tr.id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="queryRecordListByPHDids" parameterType="TPatientHospitalDoctor" resultType="TRecordResp">
|
|
|
|
|
<include refid="selectTRecordWithOutResult"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="patientId != null and patientId != ''"> and patient_id = #{patientId}</if>
|
|
|
|
|
<if test="doctorId != null and doctorId != ''"> and doctor_id = #{doctorId}</if>
|
|
|
|
|
<if test="hospitalId != null and hospitalId != ''"> and hospital_id = #{hospitalId}</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="hospitalId != null and hospitalId != ''"> and tr.hospital_id = #{hospitalId}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|