This commit is contained in:
wangliwen 2022-05-05 09:54:35 +08:00
parent 8b4966349e
commit 94c46eadb2
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
@Override
public void notify(DelegateExecution execution) throws Exception {
logger.error("----------------------进入审批通过节点---------------------------");
logger.error("事件类型:" + execution.getEventName());
final String eventName = execution.getEventName();
switch (eventName) {
@ -120,6 +121,8 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
if (re != null) {
re.setDelFlag(0);
resourceService.update(re);
logger.error("审批通过资源id:" + re.getId());
apiGatewayService.registerApi2Gateway(String.valueOf(re.getId())); // 发布到应用网关
}
}