select a.DJH,a.SL,a.DW from HIS_YFYK_DBD_MX a left join HIS_YFYK_DBD b on a.DJH=b.DJH and a.JGID=b.JGID where b.JGID=? and b.SHZT=1 and b.RKZT=0 and a.sfx_bm=?
select a.DJH,a.SL,a.DW,b.SHZT from HIS_YFYK_DBD_MX a left join HIS_YFYK_DBD b on a.DJH=b.DJH and a.JGID=b.JGID where b.JGID=? and b.RKZT=0 and a.sfx_bm=?