Parcourir la source

添加消息推送判断

hubin il y a 8 mois
Parent
commit
b2dda83f33

+ 4 - 2
src/main/java/com/aizuda/boot/modules/flw/flow/FlowTaskListener.java

@@ -54,8 +54,10 @@ public class FlowTaskListener implements TaskListener {
                         flowLongEngine.autoJumpTask(flwTask.getId(), flowCreator);
                     }
                 } else {
-                    // 推送消息
-                    this.sendMessage(flwTask, flowCreator);
+                    // 推送消息,需要勾选【审批提醒】
+                    if (Boolean.TRUE.equals(currentNodeModel.getRemind())) {
+                        this.sendMessage(flwTask, flowCreator);
+                    }
                 }
             }
             // 创建任务直接跳过