|
|
@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
update_time,
|
|
|
|
update_time,
|
|
|
|
upload_time,
|
|
|
|
upload_time,
|
|
|
|
response_time
|
|
|
|
response_time
|
|
|
|
from t_record
|
|
|
|
from t_record tr
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="selectTRecordWithResult">
|
|
|
|
<sql id="selectTRecordWithResult">
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
@ -279,7 +279,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectTRecordList" parameterType="TRecord" resultMap="TRecordResult">
|
|
|
|
<select id="selectTRecordList" parameterType="TRecord" resultMap="TRecordResult">
|
|
|
|
<include refid="selectTRecordVo"/>
|
|
|
|
<include refid="selectTRecordVo"/>
|
|
|
|
<where>
|
|
|
|
where tr.del_flag = '0'
|
|
|
|
<if test="patientId != null "> and patient_id = #{patientId}</if>
|
|
|
|
<if test="patientId != null "> and patient_id = #{patientId}</if>
|
|
|
|
<if test="doctorId != null "> and doctor_id = #{doctorId}</if>
|
|
|
|
<if test="doctorId != null "> and doctor_id = #{doctorId}</if>
|
|
|
|
<if test="hospitalId != null "> and hospital_id = #{hospitalId}</if>
|
|
|
|
<if test="hospitalId != null "> and hospital_id = #{hospitalId}</if>
|
|
|
@ -293,7 +293,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="imgSx != null and imgSx != ''"> and img_sx = #{imgSx}</if>
|
|
|
|
<if test="imgSx != null and imgSx != ''"> and img_sx = #{imgSx}</if>
|
|
|
|
<if test="imgSm != null and imgSm != ''"> and img_sm = #{imgSm}</if>
|
|
|
|
<if test="imgSm != null and imgSm != ''"> and img_sm = #{imgSm}</if>
|
|
|
|
<if test="responseTime != null "> and response_time = #{responseTime}</if>
|
|
|
|
<if test="responseTime != null "> and response_time = #{responseTime}</if>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
@ -420,11 +419,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
|
|
<select id="queryRecordListByPHDids" parameterType="TPatientHospitalDoctor" resultType="TRecordResp">
|
|
|
|
<select id="queryRecordListByPHDids" parameterType="TPatientHospitalDoctor" resultType="TRecordResp">
|
|
|
|
<include refid="selectTRecordWithResult"/>
|
|
|
|
<include refid="selectTRecordWithResult"/>
|
|
|
|
<where>
|
|
|
|
where tr.del_flag = '0'
|
|
|
|
<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>
|
|
|
|
<if test="hospitalId != null and hospitalId != ''"> and tr.hospital_id = #{hospitalId}</if>
|
|
|
|
<if test="hospitalId != null and hospitalId != ''"> and tr.hospital_id = #{hospitalId}</if>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="queryDoctorNumberOfDiagnosis" resultType="java.lang.Integer">
|
|
|
|
<select id="queryDoctorNumberOfDiagnosis" resultType="java.lang.Integer">
|
|
|
|