流程发布添加选择流程经理提示

This commit is contained in:
lihongyu 2022-09-28 14:24:24 +08:00
parent f67e5f89e4
commit 4500661a91
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import com.actionsoft.bpms.commons.database.RowMap;
import com.actionsoft.bpms.server.UserContext; import com.actionsoft.bpms.server.UserContext;
import com.actionsoft.bpms.util.DBSql; import com.actionsoft.bpms.util.DBSql;
import com.actionsoft.bpms.util.UUIDGener; import com.actionsoft.bpms.util.UUIDGener;
import com.actionsoft.exception.AWSException;
import com.actionsoft.sdk.local.SDK; import com.actionsoft.sdk.local.SDK;
/** /**
@ -66,6 +67,10 @@ public class PublishLoadBefore extends ExecuteListener {
// 可以为boData中的字段进行赋值 // 可以为boData中的字段进行赋值
Connection open = DBSql.open(); Connection open = DBSql.open();
RowMap data = DBSql.getMap(open,"select DEAPRTMNUM,PROCESSMNUMBER from BO_ACT_PROCESSMANAGER where ORGDEPART in ("+substring+")"); RowMap data = DBSql.getMap(open,"select DEAPRTMNUM,PROCESSMNUMBER from BO_ACT_PROCESSMANAGER where ORGDEPART in ("+substring+")");
if(null==data) {
throw new AWSException("请配置联系管理员流程经理和流程校对人!");
}
open.close(); open.close();
// RowMap data = DBSql.getMap(String.format("select DEAPRTMNUM,PROCESSMNUMBER from BO_ACT_PROCESSMANAGER where ORGNAME like'%s' and ORGDEPART like'%s'", allpath, allpath)); // RowMap data = DBSql.getMap(String.format("select DEAPRTMNUM,PROCESSMNUMBER from BO_ACT_PROCESSMANAGER where ORGNAME like'%s' and ORGDEPART like'%s'", allpath, allpath));
if(data != null&&null!=boData){ if(data != null&&null!=boData){