伊利项目 架构筛选初始默认文件类型全部选中其他条件为空
This commit is contained in:
parent
ba5ace1719
commit
04374f62a3
Binary file not shown.
@ -11720,16 +11720,32 @@ public String deleteReply(String replyid, String messageid) {
|
|||||||
// 组织机构
|
// 组织机构
|
||||||
|
|
||||||
// 上一次的筛选条件
|
// 上一次的筛选条件
|
||||||
// JSONObject historyCondition = new JSONObject();
|
JSONObject historyCondition = null;
|
||||||
String queryCondition = SDK.getPortalAPI().getUserProfileItem(CoEConstant.APP_ID, _uc.getUID(), "process_query_condition", "process_query_condition");
|
String queryCondition = SDK.getPortalAPI().getUserProfileItem(CoEConstant.APP_ID, _uc.getUID(), "process_query_condition", "process_query_condition");
|
||||||
if (UtilString.isNotEmpty(queryCondition)){
|
if (UtilString.isNotEmpty(queryCondition)){
|
||||||
JSONObject condition = JSONObject.parseObject(queryCondition);
|
JSONObject condition = JSONObject.parseObject(queryCondition);
|
||||||
if (condition.containsKey(_uc.getUID())) {
|
if (condition.containsKey(_uc.getUID())) {
|
||||||
JSONObject historyCondition = condition.getJSONObject(_uc.getUID());
|
JSONObject currentCondition = condition.getJSONObject(_uc.getUID());
|
||||||
// historyCondition = currentCondition;
|
historyCondition = currentCondition;
|
||||||
ro.put("historyCondition",historyCondition);
|
|
||||||
}
|
}
|
||||||
|
}else { // 初始默认 文件类型全选 创建人与组织机构为空
|
||||||
|
historyCondition = new JSONObject();
|
||||||
|
historyCondition.put("createUsers",new JSONArray());
|
||||||
|
historyCondition.put("orgIds",new JSONArray());
|
||||||
|
historyCondition.put("methodIds",new JSONArray());
|
||||||
|
for (Object o : methodIds) {
|
||||||
|
JSONObject methodObj = (JSONObject) o;
|
||||||
|
historyCondition.getJSONArray("methodIds").add(methodObj.getString("methodId"));
|
||||||
|
}
|
||||||
|
JSONObject condtions = new JSONObject();
|
||||||
|
JSONObject condtion = new JSONObject();
|
||||||
|
condtion.put("createUsers",historyCondition.getJSONArray("createUsers"));
|
||||||
|
condtion.put("orgIds",historyCondition.getJSONArray("orgIds"));
|
||||||
|
condtion.put("methodIds",historyCondition.getJSONArray("methodIds"));
|
||||||
|
condtions.put(_uc.getUID(),condtion);
|
||||||
|
SDK.getPortalAPI().setUserProfileItem(CoEConstant.APP_ID,_uc.getUID(),"process_query_condition","process_query_condition",condtions.toJSONString());
|
||||||
}
|
}
|
||||||
|
ro.put("historyCondition",historyCondition);
|
||||||
return ro.toString();
|
return ro.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user