|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
大家好! 我是OAF新人,有个问题想请教一下。我在做 resultsBasedSearch 时,查询页面只有一个字段 employee_number,但点击Go按钮时,后台执行的sql如下
SELECT * FROM (select ppf.employee_number
from per_people_f ppf
, per_assignments_f paf
where ppf.person_id = paf.person_id
) QRSLT WHERE ((EMPLOYEE_NUMBER = :1) AND ( UPPER(EMPLOYEE_NUMBER) like :2 AND (EMPLOYEE_NUMBER like :3 OR EMPLOYEE_NUMBER like :4 OR EMPLOYEE_NUMBER like :5 OR EMPLOYEE_NUMBER like :6))) ORDER BY EMPLOYEE_NUMBER ASC,
本来的sql如下:
select ppf.employee_number
from per_people_f ppf
, per_assignments_f paf
where ppf.person_id = paf.person_id
这里我就有点不明白,本来只有一个参数,怎么跑出来的sql却有5个变量。
我试着加了debug语句:
Object[] objParam = getWhereClauseParams();
for (int i = 0; i < objParam.length; i++)
{
System.out.println((i + 1) + " value:["+objParam[i]+ "]");
}
结果当 employee_number输入值为 0030568时,显示信息如下
1 value:[0311190%]
2 value:[03%]
3 value:[03%]
4 value:[03%]
5 value:[03%]
6 value:[03%]
请高手们帮忙解决一下,谢谢!
|
|