(select count(1) from tb_xw_ythcj_hm s where s.rybh=TB_RY_RYCJ.rybh and (s.sfts = '1' or s.sbcsdm like '%536U') and (xxsc_pdbz ='0' or xxsc_pdbz is null)) as HM,
(select count(1) from tb_xw_ythcj_hm s where s.rybh=TB_RY_RYCJ.rybh and (s.sfts = '1' or s.sbcsdm like '%536U' or s.sbcsdm like '%5606') and (xxsc_pdbz ='0' or xxsc_pdbz is null)) as HM,
(select count(1) from tb_xw_ythcj_zj s where s.rybh=TB_RY_RYCJ.rybh and (s.xzsl ='1' or s.xzsl is null) and (xxsc_pdbz ='0' or xxsc_pdbz is null)) as ZJ,
(select count(1) from tb_xw_ythcj_zj s where s.rybh=TB_RY_RYCJ.rybh and (s.SFTS = '0' or s.SFTS is null) and (s.xzsl ='1' or s.xzsl is null) and (xxsc_pdbz ='0' or xxsc_pdbz is null)) as ZJTS,
(select count(1) from tb_xw_ythcj_sw s where s.rybh=TB_RY_RYCJ.rybh) as SW,