修改KMS如果为全集团则赋值公司代码
This commit is contained in:
parent
03de15b0a4
commit
aaeaac8219
Binary file not shown.
@ -435,12 +435,12 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
||||
// 发布到知识库
|
||||
int m = 0;
|
||||
for (BO bo : bo_act_coe_publish_n) {
|
||||
createKmsByNew(bo, wsId, filed, processExecutionContext, bo_act_coe_publish, crateUserId);
|
||||
createKmsByNew(bo, wsId, filed, processExecutionContext, bo_act_coe_publish, new_uid);
|
||||
}
|
||||
// 更新知识库
|
||||
for (BO bo : bo_act_coe_publish_c) {
|
||||
CreateKmsByupdate(bo, wsId, filed, processExecutionContext, bo_act_coe_publish,
|
||||
crateUserId);
|
||||
new_uid);
|
||||
}
|
||||
|
||||
// 废止知识库文件
|
||||
@ -1860,6 +1860,11 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
||||
String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString();
|
||||
JSONArray jsonArray1 = new JSONArray();
|
||||
if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) {
|
||||
JSONObject jsonObjecta = new JSONObject();
|
||||
jsonObjecta.put("assignmentType", "company");
|
||||
jsonObjecta.put("assignmentId", "8911e732-b42a-4556-853f-ad32761bcbee");
|
||||
jsonArray1.add(jsonObjecta);
|
||||
} else {
|
||||
String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG");
|
||||
if (StringUtils.isNotEmpty(departId)
|
||||
&& StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL"))
|
||||
@ -1872,7 +1877,6 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
||||
jsonArray1.add(jsonObjecta);
|
||||
}
|
||||
} else {
|
||||
|
||||
String[] split = uid.split(",");
|
||||
|
||||
List<String> list = new ArrayList(Arrays.asList(split));
|
||||
@ -1888,19 +1892,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
||||
jsonArray1.add(jsonObjecta);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
List<DepartmentModel> departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1,
|
||||
"8911e732-b42a-4556-853f-ad32761bcbee");
|
||||
for (DepartmentModel departmentModel : departmentsByCompanyId) {
|
||||
String depId = departmentModel.getId();
|
||||
// 查询未注销的部门并且去掉系统部门
|
||||
if (!departmentModel.isClosed()&& !"e79281b1-2f81-4895-b30e-9f96e9ad0e2c".equals(depId)&& !"65048aee-157f-49f2-a2dc-5903dd26f519".equals(depId)) {
|
||||
JSONObject jsonObjecta = new JSONObject();
|
||||
jsonObjecta.put("assignmentType","department");
|
||||
jsonObjecta.put("assignmentId",depId);
|
||||
jsonArray1.add(jsonObjecta);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
AddKnwlAC(processExecutionContext, jsonArray1, processExecutionContext.getUserContext().getSessionId(),
|
||||
@ -1990,7 +1982,7 @@ public class ProcessEndAfterEvent_new extends ExecuteListener implements Execute
|
||||
// System.out.println("ro_create================" + ro_create);
|
||||
String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString();
|
||||
JSONArray jsonArray1 = new JSONArray();
|
||||
if (bo_act_coe_publish.getString("SEND_SCOP").equals("1")) {
|
||||
if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) {
|
||||
JSONObject jsonObjecta = new JSONObject();
|
||||
jsonObjecta.put("assignmentType", "company");
|
||||
jsonObjecta.put("assignmentId", "8911e732-b42a-4556-853f-ad32761bcbee");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user