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/TaskService.java | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 208 insertions(+), 0 deletions(-)
diff --git a/jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/TaskService.java b/jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/TaskService.java
new file mode 100644
index 0000000..8b3fcaf
--- /dev/null
+++ b/jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/TaskService.java
@@ -0,0 +1,208 @@
+package jnpf.flowable.service;
+
+import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
+import jnpf.base.service.SuperService;
+import jnpf.exception.WorkFlowException;
+import jnpf.flowable.entity.TaskEntity;
+import jnpf.flowable.model.candidates.CandidateCheckFo;
+import jnpf.flowable.model.candidates.CandidateCheckVo;
+import jnpf.flowable.model.candidates.CandidateUserVo;
+import jnpf.flowable.model.monitor.MonitorVo;
+import jnpf.flowable.model.task.*;
+import jnpf.flowable.model.template.BeforeInfoVo;
+
+import java.util.List;
+
+/**
+ * 绫荤殑鎻忚堪
+ *
+ * @author JNPF@YinMai Info. Co., Ltd
+ * @version 5.0.x
+ * @since 2024/4/17 15:08
+ */
+public interface TaskService extends SuperService<TaskEntity> {
+
+ TaskEntity getInfoSubmit(String id, SFunction<TaskEntity, ?>... columns);
+
+ List<TaskEntity> getInfosSubmit(String[] ids, SFunction<TaskEntity, ?>... columns);
+
+ /**
+ * 鎴戝彂璧风殑 鍒楄〃
+ *
+ * @param pagination 鍒嗛〉
+ */
+ List<TaskVo> getList(TaskPagination pagination);
+
+ /**
+ * 鐩戞帶鍒楄〃
+ *
+ * @param pagination 鍒嗛〉鍙傛暟
+ */
+ List<MonitorVo> getMonitorList(TaskPagination pagination);
+
+ /**
+ * 浠诲姟瀹炰綋
+ *
+ * @param id 浠诲姟涓婚敭
+ */
+ TaskEntity getInfo(String id) throws WorkFlowException;
+
+ /**
+ * 鍙戣捣銆佸鎵硅鎯�
+ *
+ * @param id 浠诲姟id
+ * @param fo 鍙傛暟绫�
+ */
+ BeforeInfoVo getInfo(String id, FlowModel fo) throws WorkFlowException;
+
+ /**
+ * 鑾峰彇鑳借蛋鐨勮妭鐐癸紝鍒ゆ柇鍊欓�変汉
+ *
+ * @param id 缁忓姙涓婚敭
+ * @param fo 鍙傛暟绫�
+ */
+ CandidateCheckVo checkCandidates(String id, CandidateCheckFo fo) throws WorkFlowException;
+
+ /**
+ * 鑾峰彇鍊欓�変汉
+ *
+ * @param fo 鍙傛暟绫�
+ */
+ List<CandidateUserVo> getCandidateUser(String id, CandidateCheckFo fo) throws WorkFlowException;
+
+ /**
+ * 鏆傚瓨銆佹彁浜�
+ *
+ * @param flowModel 鍙傛暟
+ */
+ void batchSaveOrSubmit(FlowModel flowModel) throws WorkFlowException;
+
+ /**
+ * 鏆傚瓨銆佹彁浜�
+ *
+ * @param fo 鍙傛暟绫�
+ */
+ void saveOrSubmit(FlowModel fo) throws WorkFlowException;
+
+ /**
+ * 鍙戣捣鎾ゅ洖
+ *
+ * @param id 浠诲姟涓婚敭
+ * @param flowModel 鍙傛暟
+ */
+ void recall(String id, FlowModel flowModel) throws WorkFlowException;
+
+ /**
+ * 鍌姙
+ *
+ * @param id 浠诲姟涓婚敭
+ */
+ boolean press(String id) throws WorkFlowException;
+
+ /**
+ * 鎾ら攢
+ *
+ * @param id 浠诲姟涓婚敭
+ */
+ void revoke(String id, FlowModel flowModel) throws WorkFlowException;
+
+ /**
+ * 鍒犻櫎
+ *
+ * @param id 涓婚敭
+ */
+ List<TaskEntity> delete(String id) throws WorkFlowException;
+
+ /**
+ * 鍒犻櫎
+ *
+ * @param ids 涓婚敭鏁扮粍
+ */
+ void deleteBatch(List<String> ids) throws WorkFlowException;
+
+ /**
+ * 閫掑綊鑾峰彇瀛愭祦绋�
+ *
+ * @param idList 闇�瑕侀�掑綊鐨勪换鍔′富閿泦鍚�
+ * @param idAll 缁撴灉浠诲姟涓婚敭闆嗗悎
+ */
+ void deleTaskAll(List<String> idList, List<String> idAll);
+
+ /**
+ * 缁堟銆佸娲�
+ *
+ * @param id 涓婚敭
+ * @param flowModel 鍙傛暟
+ * @param isCancel 鏍囪瘑锛宼rue 缁堟
+ */
+ void cancel(String id, FlowModel flowModel, boolean isCancel) throws WorkFlowException;
+
+ /**
+ * 鍒ゆ柇鏄惁瀛樺湪寮傛瀛愭祦绋�
+ *
+ * @param id 浠诲姟涓婚敭
+ */
+ boolean checkAsync(String id);
+
+ /**
+ * 鎸傝捣銆佹仮澶�
+ *
+ * @param id 涓婚敭
+ * @param flowModel 鍙傛暟
+ * @param isSuspend 鏍囪瘑锛宼rue 鎸傝捣銆乫alse 鎭㈠
+ */
+ void pause(String id, FlowModel flowModel, Boolean isSuspend) throws WorkFlowException;
+
+ /**
+ * 鎸囨淳
+ *
+ * @param id 涓婚敭
+ * @param flowModel 鍙傛暟
+ */
+ void assign(String id, FlowModel flowModel) throws WorkFlowException;
+
+ /**
+ * 鑾峰彇娴佺▼鎵�鍏宠仈鐨勭敤鎴蜂俊鎭�
+ *
+ * @param taskId 浠诲姟涓婚敭
+ */
+ TaskUserListModel getTaskUserList(String taskId);
+
+ /**
+ * 瀛愭祦绋嬭鎯�
+ *
+ * @param flowModel 鍙傛暟
+ */
+ List<BeforeInfoVo> subFlowInfo(FlowModel flowModel) throws WorkFlowException;
+
+ /**
+ * 娑堟伅璺宠浆娴佺▼鏍¢獙
+ *
+ * @param id 缁忓姙鎴栨妱閫佷富閿�
+ */
+ String checkInfo(String id) throws WorkFlowException;
+
+ /**
+ * 鏇存柊褰掓。鐘舵��
+ *
+ * @param taskId 浠诲姟涓婚敭
+ */
+ void updateIsFile(String taskId) throws WorkFlowException;
+
+ /**
+ * 鑾峰彇鍙戣捣琛ㄥ崟
+ *
+ * @param taskId 浠诲姟涓婚敭
+ */
+ ViewFormModel getStartForm(String taskId) throws WorkFlowException;
+
+ /**
+ * 鑾峰彇娴佺▼鏁伴噺
+ */
+ TaskTo getFlowTodoCount(TaskTo taskTo);
+
+ /**
+ * 鑾峰彇寰呭姙浜嬮」
+ */
+ FlowTodoVO getFlowTodo(TaskPagination pagination);
+}
--
Gitblit v1.8.0