查询诊断记录列表的删除标志位判断

master
gongzhenkun 2 years ago
parent e25d831392
commit ef9c5b10b2

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

Loading…
Cancel
Save