<if test="kc !=null and kc !='' ">
AND kch||kcmc like '%'||#{kc}||'%'
</if>
<if test="xh != null and xh !=''">
and (t2.xh like '%'||#{xh}||'%' or t2.xm like '%'||#{xh}||'%')
</if>
<if test="kc !=null and kc !='' ">
AND kch||kcmc like '%'||#{kc}||'%'
</if>
<if test="xh != null and xh !=''">
and (t2.xh like '%'||#{xh}||'%' or t2.xm like '%'||#{xh}||'%')
</if>