修改就诊记录查询bug

master
chenfei 2 years ago
parent 8172a37a3c
commit 517678a29d

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

Loading…
Cancel
Save