邦wlb 发布于58月前 2答/1529阅
public class OSSConfig extends EovaConfig {
/**
* 自定义表达式(主要用于级联)
*/
@Override
protected void exp() {
super.exp();
// 区域级联查询
exps.put("selectAreaByLv2AndPid", "select id ID,name CN from area where lv = 2 and pid = ?");
exps.put("selectAreaByLv3AndPid", "select id ID,name CN from area where lv = 3 and pid = ?");
}
}
上面代码中的如何使用 like '张三%' 模糊查询?例如:
select id ID,name CN from area where pid like ?%
实现过程中遇到的问题:
我觉得这个问题的原因是:
可以了,在js页面试出一个办法,就是 escape('%')传进去
$city.eovacombo({exp : 'selectAreaByLv2AndPid,' + newValue + escape('%') }).reload();