|

楼主 |
发表于 2017-11-21 11:50:18
|
显示全部楼层
我在移动端试了下,可以选岗位,但是选岗位流转后,PC端岗位下的人可以看到待办,移动端看不到,看了下查询的action不是系统的,看的不太明白,如果选择岗位流转,在移动端也可以看到待办,在这个action上需要怎么修改?public static Table queryWaitTask2(String concept, String idColumn, String select, String from, String condition, List<DataPermission> range,
String filter, Boolean distinct, int offset, int limit, String columns, String orderBy, String aggregate, String aggregateColumns,
Map<String, Object> variables, String dataModel, String fnModel) {
if (variables == null)
variables = new HashMap<String, Object>();
String customFilter = TaskUtils.getExecutorCondition("SA_Task", ContextHelper.getPerson().getPersonMembers(), true, variables);
customFilter = "(SA_Task.sStatusID='tesReady' or SA_Task.sStatusID='tesExecuting') " +
" and " + customFilter;
if (Utils.isEmptyString(filter))
filter = customFilter;
else{
filter = "(" + filter + ") and " + customFilter;
}
String cacheKey = concept + idColumn + select + from + condition + offset + limit + columns + orderBy + aggregate + aggregateColumns +dataModel + fnModel + filter;
if(BizCache.useCache("frequencyCache")){
Table cacheTable = BizCache.waitTaskCache.get(cacheKey);
if (BizCache.waitTaskCache.size()>5000){
BizCache.waitTaskCache.clear();
}
if(cacheTable != null){
return cacheTable;
}
}
Table table = BizData.query(concept, idColumn, select, from, condition, range, filter, distinct, offset, limit, columns, orderBy, aggregate,
aggregateColumns, variables, dataModel, fnModel);
Iterator<Row> it = table.iterator();
while (it.hasNext()){
Row r = it.next();
{
//修改sExecutorFName
String executorName = getValue(r.getString("sExecutorFName"), "");
if (Utils.isEmptyString(executorName)){
executorName = getValue(r.getString("sExecutorNames"), "");
}else{
executorName = CommonUtils.getNameOfFile(executorName);
}
if (executorName == null){
executorName = "";
}
r.setString("sExecutorFName", executorName);
}
{
//修改sCreatorFName
String creatorName = getValue(r.getString("sCreatorFName"), "");
creatorName = CommonUtils.getNameOfFile(creatorName);
if (creatorName == null){
creatorName = "";
}
r.setString("sCreatorFName", creatorName);
}
}
if(BizCache.useCache("frequencyCache")){
BizCache.waitTaskCache.put(cacheKey, table, 2000l);
}
return table;
}
|
|