|
请教一下我调用系统queryaction查出来的数据第一条总是没了,返回来的数据都是从第二条开始的?为什么呢。
代码如下
-------.j文件--------
Action action = new Action();
// 指定动作的process、activity和action,这里要注意登录的用户应该有执行这个功能中的这个动作的权限
action.setProcess("/OA/common/process/commonQuery/commonQueryProcess");
action.setActivity("mainActivity");
action.setName("queryStandardAction"); //查询action名称
// 设置动作参数
action.setParameter("concept", "OA_KM_Knowledge");
action.setParameter("select", "OA_KM_Knowledge.*");
action.setParameter("from", "OA_KM_Knowledge OA_KM_Knowledge");
action.setParameter("aggregate", "");
action.setParameter("dataModel", "/OA/knowledge/data");
action.setParameter("fnModel", "");
action.setParameter("distinct", "false");
action.setParameter("idColumn", "OA_KM_Knowledge");
action.setParameter("filter", "");
action.setParameter("limit", "20");
action.setParameter("offset", "1");
action.setParameter("columns", "");
action.setParameter("orderBy", ""); // action.setParameter("concept", new java.sql.Date(startDate.getTime()));
action.setParameter("aggregateColumns", "");
// 调用动作
ActionResult actionResult = ActionEngine.invokeAction(action, ActionUtils.JSON_CONTENT_TYPE, bsessionid, null, null);
System.out.println("2.6获取的table:"+actionResult.getDatas().toString());
---------自定义的一个action----------
table1 = BizData.query(concept, idColumn, select, from, condition, range, filter, distinct1, offset1, limit1, columns, orderBy, aggregate,
aggregateColumns, variables, dataModel, fnModel);
System.out.println("----------这里是公共方法返回的是table-----------" );
return table1;
|
|