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/TemplateService.java |  206 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 206 insertions(+), 0 deletions(-)

diff --git a/jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/TemplateService.java b/jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/TemplateService.java
new file mode 100644
index 0000000..b9eac17
--- /dev/null
+++ b/jnpf-flowable/jnpf-flowable-biz/src/main/java/jnpf/flowable/service/TemplateService.java
@@ -0,0 +1,206 @@
+package jnpf.flowable.service;
+
+import jnpf.base.entity.VisualdevEntity;
+import jnpf.base.model.export.TemplateExportVo;
+import jnpf.base.service.SuperService;
+import jnpf.exception.WorkFlowException;
+import jnpf.flowable.entity.TemplateEntity;
+import jnpf.flowable.model.template.*;
+import jnpf.flowable.model.templatejson.FlowFormModel;
+import jnpf.permission.entity.UserEntity;
+
+import java.util.List;
+import java.util.Map;
+
+public interface TemplateService extends SuperService<TemplateEntity> {
+
+    /**
+     * 鍒楄〃
+     *
+     * @return
+     */
+    List<TemplateEntity> getList(TemplatePagination pagination);
+
+    /**
+     * 鍒楄〃
+     *
+     * @return
+     */
+    List<TemplatePageVo> getSelector(TemplatePagination pagination);
+
+    /**
+     * 鏍戝舰甯哥敤
+     */
+    List<TemplateTreeListVo> getTreeCommon();
+
+    /**
+     * 鏍戝舰闆嗗悎
+     */
+    List<TemplateTreeListVo> treeList(Integer formType);
+
+    /**
+     * 鏉冮檺鏍戝舰闆嗗悎
+     */
+    List<TemplateTreeListVo> treeListWithPower();
+
+    /**
+     * 鍒楄〃
+     *
+     * @param pagination 鍒嗛〉鍙傛暟
+     * @param isPage     鏄惁鍒嗛〉
+     */
+    List<TemplateEntity> getListAll(TemplatePagination pagination, boolean isPage);
+
+    /**
+     * 鏍规嵁鐗堟湰涓婚敭闆嗗悎鑾峰彇娴佺▼妯℃澘闆嗗悎
+     *
+     * @param flowIds 鐗堟湰涓婚敭闆嗗悎
+     */
+    List<TemplateEntity> getListByFlowIds(List<String> flowIds);
+
+    /**
+     * 淇℃伅
+     *
+     * @param id 涓婚敭鍊�
+     * @return ignore
+     */
+    TemplateEntity getInfo(String id) throws WorkFlowException;
+
+    /**
+     * 楠岃瘉鍚嶇О
+     *
+     * @param fullName 鍚嶇О
+     * @param id       涓婚敭鍊�
+     * @return
+     */
+    boolean isExistByFullName(String fullName, String id, String systemId);
+
+    /**
+     * 楠岃瘉缂栫爜
+     *
+     * @param enCode 缂栫爜
+     * @param id     涓婚敭鍊�
+     * @return
+     */
+    boolean isExistByEnCode(String enCode, String id, String systemId);
+
+    /**
+     * 鍒涘缓
+     *
+     * @param entity 瀹炰綋瀵硅薄
+     */
+    void create(TemplateEntity entity, String flowXml, Map<String, Map<String, Object>> flowNodes) throws WorkFlowException;
+
+    /**
+     * 鏇存柊
+     *
+     * @param id     涓婚敭鍊�
+     * @param entity 瀹炰綋瀵硅薄
+     * @return ignore
+     */
+    boolean update(String id, TemplateEntity entity) throws WorkFlowException;
+
+    /**
+     * 鍒犻櫎
+     *
+     * @param entity 瀹炰綋瀵硅薄
+     */
+    void delete(TemplateEntity entity) throws WorkFlowException;
+
+    /**
+     * 澶嶅埗
+     *
+     * @param entity 瀹炰綋瀵硅薄
+     */
+    void copy(TemplateEntity entity) throws WorkFlowException;
+
+    /**
+     * 瀵煎嚭
+     *
+     * @param id 瀹氫箟涓婚敭
+     */
+    TemplateExportModel export(String id) throws WorkFlowException;
+
+    /**
+     * 瀵煎叆
+     *
+     * @param model 瀵煎嚭model
+     * @param type  绫诲瀷
+     */
+    void importData(TemplateExportModel model, String type) throws WorkFlowException;
+
+    /**
+     * 鏌ヨ
+     */
+    List<TemplateEntity> getList(List<String> ids);
+
+    /**
+     * 鏍规嵁id鍒楄〃鏌ヨ
+     */
+    List<TemplateEntity> getListByIds(List<String> ids);
+
+    /**
+     * 鏌ヨ锛坰tatus涓� 1銆�2 鐨勶級
+     */
+    List<TemplateEntity> getListOfHidden(List<String> ids);
+
+    /**
+     * 鏍规嵁琛ㄥ崟涓婚敭鑾峰彇娴佺▼锛堟潈闄愯繃婊わ級
+     *
+     * @param formId 琛ㄥ崟涓婚敭
+     */
+    FlowByFormModel getFlowByFormId(String formId, Boolean start);
+
+    /**
+     * 瀛愭祦绋嬪彲鍙戣捣浜哄憳
+     *
+     * @param flowId     娴佺▼涓婚敭
+     * @param pagination 鍒嗛〉鍙傛暟
+     */
+    List<UserEntity> getSubFlowUserList(String flowId, TemplatePagination pagination) throws WorkFlowException;
+
+    /**
+     * 鏍规嵁妯℃澘涓婚敭鑾峰彇琛ㄥ崟
+     *
+     * @param templateId 娴佺▼妯℃澘涓婚敭
+     */
+    VisualdevEntity getFormByTemplateId(String templateId) throws WorkFlowException;
+
+    /**
+     * 鏍规嵁妯℃澘涓婚敭鑾峰彇琛ㄥ崟涓婚敭鍜屾祦绋嬬増鏈富閿�
+     *
+     * @param templateId 娴佺▼妯℃澘涓婚敭
+     */
+    FlowFormModel getFormIdAndFlowId(List<String> userId, String templateId) throws WorkFlowException;
+
+    /**
+     * 鑾峰彇鍚敤鐨勬祦绋嬬増鏈殑琛ㄥ崟闆嗗悎
+     */
+    List<String> getFormList();
+
+    /**
+     * 鑾峰彇娴佺▼templateId鍜岃〃鍗昮ormId缁勬垚鐨刴ap
+     */
+    Map<String, String> getFlowFormMap();
+
+    /**
+     * 鏀惰棌鐨勬祦绋嬪垪琛�
+     *
+     * @param pagination
+     * @return
+     */
+    List<TemplatePageVo> getCommonList(TemplatePagination pagination);
+
+    String getEnCode(TemplateEntity entity);
+    /**
+     * 鑾峰彇鐢ㄦ埛鍒涘缓鐨勬墍鏈夋ā鏉�
+     *
+     * @param creUser
+     * @return
+     */
+    List<TemplateEntity> getListByCreUser(String creUser);
+
+    List<TemplateExportVo> getExportList(String systemId);
+
+    void deleteBySystemId(String systemId);
+}

--
Gitblit v1.8.0