修改查询图片未过滤已删除和申请关联字典表parentId错误

master
zengwh 6 years ago
parent db4832ae6e
commit 58e3b9ea31

@ -545,7 +545,7 @@
ON ON
a.patient_id = c.patient_id a.patient_id = c.patient_id
LEFT JOIN LEFT JOIN
(select code,Name from emr_dictionary where parent_id = (select id from emr_dictionary where typeCode = 'apply_type')) emr_dictionary (select code,Name from emr_dictionary where parent_id = 'apply_type') emr_dictionary
ON ON
a.apply_type = emr_dictionary.code a.apply_type = emr_dictionary.code
LEFT JOIN LEFT JOIN
@ -554,7 +554,7 @@
a.patient_id = emr_lock.patient_id a.patient_id = emr_lock.patient_id
AND emr_lock.lock_state = 1 AND emr_lock.lock_state = 1
<where> <where>
a.id IN (${checks}) AND a.id IN (${checks})
</where> </where>
</select> </select>

@ -59,6 +59,7 @@
dbo.zd_assort.assort_id = dbo.t_scan_assort.assort_id dbo.zd_assort.assort_id = dbo.t_scan_assort.assort_id
<where> <where>
dbo.commomtable.patient_id in (${patientIds}) dbo.commomtable.patient_id in (${patientIds})
AND t_scan_assort.is_del != 1
<if test="assortIds != null"> <if test="assortIds != null">
AND dbo.t_scan_assort.scan_page in (${assortIds}) AND dbo.t_scan_assort.scan_page in (${assortIds})
</if> </if>

Loading…
Cancel
Save