From 34981c30a78e8bbd7791131059a9210f9928b62c Mon Sep 17 00:00:00 2001
From: 刘光辉 <347230014@qq.com>
Date: 星期四, 17 九月 2026 09:24:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master

---
 jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/CandidatesService.java |   78 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 0 deletions(-)

diff --git a/jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/CandidatesService.java b/jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/CandidatesService.java
new file mode 100644
index 0000000..efd8485
--- /dev/null
+++ b/jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/CandidatesService.java
@@ -0,0 +1,78 @@
+package jnpf.flowable.service;
+
+import jnpf.base.service.SuperService;
+import jnpf.flowable.entity.CandidatesEntity;
+import jnpf.flowable.entity.OperatorEntity;
+import jnpf.flowable.entity.TemplateNodeEntity;
+import jnpf.flowable.model.task.FlowModel;
+
+import java.util.List;
+
+/**
+ * 绫荤殑鎻忚堪
+ *
+ * @author JNPF@YinMai Info. Co., Ltd
+ * @version 5.0.x
+ * @since 2024/4/18 16:01
+ */
+public interface CandidatesService extends SuperService<CandidatesEntity> {
+
+    /**
+     * 鑾峰彇鍊欓�変汉
+     *
+     * @param taskId   浠诲姟id
+     * @param nodeCode 鑺傜偣缂栫爜
+     */
+    List<CandidatesEntity> getList(String taskId, String nodeCode);
+
+    /**
+     * 鏂板缓
+     *
+     * @param fo             鍙傛暟绫�
+     * @param taskId         浠诲姟id
+     * @param nodeEntityList 鑺傜偣闆嗗悎
+     * @param operator       缁忓姙瀹炰綋
+     */
+    void create(FlowModel fo, String taskId, List<TemplateNodeEntity> nodeEntityList, OperatorEntity operator);
+
+    /**
+     * 鍒犻櫎
+     *
+     * @param taskId  浠诲姟涓婚敭
+     * @param nodeIds 鑺傜偣缂栫爜闆嗗悎
+     */
+    void deleteByCodes(String taskId, List<String> nodeIds);
+
+    /**
+     * 鍒犻櫎
+     *
+     * @param taskId  浠诲姟涓婚敭
+     * @param nodeIds 鑺傜偣缂栫爜
+     * @param userId  鐢ㄦ埛涓婚敭
+     */
+    void delete(String taskId, List<String> nodeIds, List<String> userId);
+
+    /**
+     * 鑾峰彇閫夋嫨鍒嗘敮
+     *
+     * @param taskId   浠诲姟涓婚敭
+     * @param nodeCode 鑺傜偣缂栫爜
+     */
+    List<String> getBranch(String taskId, String nodeCode);
+
+    /**
+     * 淇濆瓨閫夋嫨鍒嗘敮
+     *
+     * @param branchList 閫夋嫨鍒嗘敮
+     * @param operator   缁忓姙
+     */
+    void createBranch(List<String> branchList, OperatorEntity operator);
+
+    /**
+     * 鍒犻櫎閫夋嫨鍒嗘敮
+     *
+     * @param taskId   浠诲姟涓婚敭
+     * @param nodeCode 鑺傜偣缂栫爜
+     */
+    void deleteBranch(String taskId, String nodeCode);
+}

--
Gitblit v1.8.0