SELECT * FROM [dbo].[WZ_DETAIL]
where
c_name like '%${xxxx1}%'
and wz_name like '%${xxxx2}%'
and descshort like '%${xxxx3}%'
and desclong like '%${xxxx4}%'
==========
SELECT * FROM [dbo].[WZ_DETAIL]
where 1=1
${if(len(xxxx1)=0,""," and c_name like '%"+xxxx1+"%'")}
${if(len(xxxx2)=0,""," and wz_name like '%"+xxxx2+"%'")}
${if(len(xxxx3)=0,""," and descshort like '%"+xxxx3+"%'")}
${if(len(xxxx4)=0,""," anddesclong like '%"+xxxx4+"%'")}