求高手知道MiniDao怎么模糊查询
<#if qlqdEntity.tx ?exists && qlqdEntity.tx ?length gt 0>and tx like '${qlqdEntity.tx}%'
</#if>
<#if qlqdEntity.gcmc ?exists && qlqdEntity.gcmc ?length gt 0>
and gcmc = '${qlqdEntity.gcmc}'
</#if>
<#if qlqdEntity.ggxh ?exists && qlqdEntity.ggxh ?length gt 0>
and ggxh = :qlqdEntity.ggxh
</#if>
这两种写法都不能使用,求正确方法 请问解决了吗,我也遇到了这个模糊查询,like里面的是传餐,求指教哇 <#if ( employee.empno )?? && employee.empno ?length gt 0>
/* 雇员编号 */
and e.empno = :employee.empno
</#if>
<#if ( employee.name )?? && employee.name ?length gt 0>
/* 雇员名 模糊查询 */
and e.NAMElike CONCAT('%', :employee.name ,'%')
</#if>
页:
[1]