修改mybatis查询错误

master
zengwh 4 years ago
parent 8cda09f0c7
commit cd8861eaf0

@ -636,7 +636,7 @@
LEFT JOIN <include refid="selectCallBackList"></include> archive_other_ext ON archive_master.patient_id = archive_other_ext.jzh
LEFT JOIN <include refid="selectPatientIdByPrintInfo"></include> printInfoTable ON printInfoTable.patient_id = archive_master.patient_id
<where><include refid="beHospitalSearch"></include>
<if test="callBackStatus != null">
<if test="callBackStatus != null and callBackStatus != ''">
<choose>
<when test="callBackStatus == 1">
AND jzh is not null
@ -728,7 +728,7 @@
LEFT JOIN ( SELECT MasterID FROM archive_detail WHERE Source = '扫描上传' AND archive_detail.flag = '0' GROUP BY MasterID ) archive_detail ON m.id = archive_detail.MasterID
LEFT JOIN <include refid="selectPatientIdByPrintInfo"></include> printInfoTable ON printInfoTable.patient_id = m.patient_id
where 1=1 and ArchiveState in ('64','1024')
<if test="callBackStatus != null">
<if test="callBackStatus != null and callBackStatus != ''">
<choose>
<when test="callBackStatus == 1">
AND jzh is not null

Loading…
Cancel
Save