定义#set ($q='"') 一个变量
#set($querySQL=" and " +${element.FIELD_ENGLISH_NAME}+" like '%"+$q+"+"+${element.FIELD_ENGLISH_NAME}+"+"+$q+"%'")
结果是
searchSQL=" and form_name like '%"+form_name+"%' and qybz like '%"+qybz+"%'";
定义#set ($q='"') 一个变量
#set($querySQL=" and " +${element.FIELD_ENGLISH_NAME}+" like '%"+$q+"+"+${element.FIELD_ENGLISH_NAME}+"+"+$q+"%'")
结果是
searchSQL=" and form_name like '%"+form_name+"%' and qybz like '%"+qybz+"%'";
转载于:https://my.oschina.net/u/1186493/blog/184304