select * from TB_RY_RYCJ where (SCBZ='0' or SCBZ is null) and RYBH = #{rybh , jdbcType=VARCHAR }
select t.*,(select ryzp_dzwjnr from tb_rycj_zp s where s.asjxgrybh=t.rybh and zpbw='2') dzwjnr from TB_RY_RYCJ t where (SCBZ='0' or SCBZ is null) and RYBH = #{rybh , jdbcType=VARCHAR }
select t.*,a.rwbh,a.fssj from TB_RY_RYCJ t,AFIS_QUALITY_CK a where t.rybh = a.r_rybh(+) and (t.SCBZ='0' or t.SCBZ is null) and (t.ZJHM = #{zjhm , jdbcType=VARCHAR } OR t.GMSFHM = #{zjhm , jdbcType=VARCHAR })
select t.*,(select ryzp_dzwjnr from tb_rycj_zp s where s.asjxgrybh=t.rybh and zpbw='2') dzwjnr,a.rwbh,a.fssj from TB_RY_RYCJ t,AFIS_QUALITY_CK a where t.rybh = a.r_rybh(+) and (t.SCBZ='0' or t.SCBZ is null) and (t.ZJHM = #{zjhm , jdbcType=VARCHAR } OR t.GMSFHM = #{zjhm , jdbcType=VARCHAR })