@@ -36,6 +36,7 @@
WHERE
u.is_deleted = 'N'
AND pd.is_deleted = 'N'
+ and pd.status= 1
<if test="hospitalId !=null">
and u.hospital_id =#{hospitalId}
</if>