@ -102,7 +102,7 @@
on m.dept_admission_to=d.code
LEFT JOIN (select code,name from emr_dictionary where parent_id='dept_code') f
on m.dept_name=f.code
where 1=1 and YEAR(m.discharge_date_time) = '1801'
where 1=1 and m.c1='I'
<if test="deptAdmissionTo!= null and deptAdmissionTo!= ''">
and m.dept_name in
<foreach item="item" collection="deptAdmissionTo.split(',')" open="(" separator="," close=")">