流程发布推送EHSQ调整
This commit is contained in:
parent
359a2d0711
commit
5a22c7584a
@ -338,7 +338,34 @@ public class ProcessEndAfterEvent extends ExecuteListener implements ExecuteList
|
|||||||
/**
|
/**
|
||||||
* 推送到EHSQ
|
* 推送到EHSQ
|
||||||
*/
|
*/
|
||||||
if ("true".equals(isSendEHSQ)) {
|
boolean sendEhqs = false;
|
||||||
|
String depId = processExecutionContext.getUserContext().getDepartmentModel().getId();
|
||||||
|
//获取EHSQ配置表判断是否发送
|
||||||
|
String sql = "SELECT * FROM BO_ACT_ACT_ESQ_SEND";
|
||||||
|
List<RowMap> maps = DBSql.getMaps(sql);
|
||||||
|
for (RowMap rowMap : maps) {
|
||||||
|
String dempet = rowMap.getString("DEMPET");
|
||||||
|
String issend = rowMap.getString("ISSEND");
|
||||||
|
DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(dempet);
|
||||||
|
if(departmentById!=null) {
|
||||||
|
String departemenId = departmentById.getId();
|
||||||
|
if(departemenId.equals(depId)&&"是".equals(issend)) {
|
||||||
|
sendEhqs = true;
|
||||||
|
} /*
|
||||||
|
* else { List<DepartmentModel> subDepartments =
|
||||||
|
* SDK.getORGAPI().getSubDepartments(departmentById.getId()); for
|
||||||
|
* (DepartmentModel departmentModel : subDepartments) { String subDeartmentId =
|
||||||
|
* departmentModel.getId(); if(subDeartmentId.equals(depId)&&"是".equals(issend))
|
||||||
|
* { sendEhqs = true; } }
|
||||||
|
*
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!sendEhqs) {
|
||||||
|
System.err.println("本次发文不推送EHSQ====>"+processExecutionContext.getProcessInstance().getTitle());
|
||||||
|
}
|
||||||
|
if ("true".equals(isSendEHSQ)&&sendEhqs) {
|
||||||
try {
|
try {
|
||||||
// 推送EHSQ
|
// 推送EHSQ
|
||||||
if(bo_act_coe_publish_n.size()>0) {
|
if(bo_act_coe_publish_n.size()>0) {
|
||||||
@ -492,10 +519,6 @@ public class ProcessEndAfterEvent extends ExecuteListener implements ExecuteList
|
|||||||
ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, paramss);
|
ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, paramss);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//DCContext对象,必填
|
|
||||||
|
|
||||||
//创建文件
|
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user