重新添加权限时,使用视图的bindid(703)
This commit is contained in:
parent
94c4d43bf8
commit
11f32941f0
@ -209,6 +209,7 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
|
||||
/**
|
||||
* 以当前发布、变更、停用的流程作为前后置流程的流程,对其流程接口的文本进行调整
|
||||
*
|
||||
* @param bo
|
||||
* @param bolistN
|
||||
* @param bolistC
|
||||
@ -431,6 +432,7 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
|
||||
/**
|
||||
* 新生成流程手册,编号进行处理
|
||||
*
|
||||
* @param uuid
|
||||
*/
|
||||
private void updateProcessReport(String uuid, String processInstId, String type, String appUser) {
|
||||
@ -522,6 +524,7 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
|
||||
/**
|
||||
* 创建手册
|
||||
*
|
||||
* @param model
|
||||
* @param wsId
|
||||
* @param userId
|
||||
@ -613,6 +616,7 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
|
||||
/**
|
||||
* 流程发布范围权限单独存储
|
||||
*
|
||||
* @param publish 流程发布bo主表
|
||||
* @param bolistN 新增发布流程信息
|
||||
* @param bolistC 变更发布流程信息,需要将已存在的相应流程权限信息进行删除,再进行权限存储
|
||||
@ -681,7 +685,7 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
}
|
||||
|
||||
// 重新添加权限
|
||||
List<BO> list = new ArrayList<>();
|
||||
//List<BO> list = new ArrayList<>();
|
||||
for (Map.Entry<String, String> entry : addVerMap.entrySet()) {
|
||||
String verId = entry.getKey();
|
||||
String name = entry.getValue();
|
||||
@ -694,13 +698,19 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
bo.set("ORGPERM", "1".equals(sendScope) ? SDK.getORGAPI().getCompanyByUser(applyUser).getId() : sendScopeOrg);
|
||||
bo.set("POSTPERM", "1".equals(sendScope) ? "" : sendScopePost);
|
||||
bo.set("LEVELPERM", "1".equals(sendScope) ? "" : sendScopeLevel);
|
||||
list.add(bo);
|
||||
|
||||
ProcessInstance boProcessInstance = SDK.getProcessAPI()
|
||||
.createBOProcessInstance("obj_e076b01bd0d04bc39e5af12e2c8c188c", applyUser, "权限阅览");
|
||||
SDK.getBOAPI().create(newBoName, bo, boProcessInstance.getId(), applyUser);
|
||||
|
||||
// list.add(bo);
|
||||
}
|
||||
if (list.size() > 0) {
|
||||
SDK.getBOAPI().create(newBoName, list, bindId, applyUser);
|
||||
// if (list.size() > 0) {
|
||||
// SDK.getBOAPI().create(newBoName, list, bindId, applyUser);
|
||||
// SDK.getLogAPI().consoleInfo("[发布范围权限信息保存至范围权限表]更新成功");
|
||||
// }
|
||||
SDK.getLogAPI().consoleInfo("[发布范围权限信息保存至范围权限表]更新成功");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/****
|
||||
@ -737,6 +747,7 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
/**
|
||||
* 1、发布结束后获取关联绩效模型填充流程编号
|
||||
* 2、获取信息插入绩效指标库
|
||||
*
|
||||
* @param publishFileId
|
||||
* @param publishDate
|
||||
*/
|
||||
@ -802,7 +813,6 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
if (!dataAttributes.isEmpty() && dataAttributes.size() > 0) {
|
||||
|
||||
|
||||
|
||||
for (Object attribute : dataAttributes) {
|
||||
JSONObject obj = (JSONObject) attribute;
|
||||
if (obj.containsKey("attributesJsonArray")) {
|
||||
@ -988,7 +998,6 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
} catch (AWSDataAccessException e) {
|
||||
e.printStackTrace();
|
||||
@ -998,6 +1007,4 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user