From 23855599412c4d61b38d78f0f3abd3430a48b5b1 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期三, 25 六月 2025 11:51:38 +0800
Subject: [PATCH] Merge branch 'mdc_hyjs_master'

---
 lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/service/IMdcProductionService.java |  195 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 195 insertions(+), 0 deletions(-)

diff --git a/lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/service/IMdcProductionService.java b/lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/service/IMdcProductionService.java
new file mode 100644
index 0000000..04a7069
--- /dev/null
+++ b/lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/service/IMdcProductionService.java
@@ -0,0 +1,195 @@
+package org.jeecg.modules.system.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.system.entity.MdcProduction;
+import org.jeecg.modules.system.model.MdcProductionTreeModel;
+import org.jeecg.modules.system.model.ProductionIdModel;
+import org.jeecg.modules.system.vo.MdcProOptionsVo;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @Description: 浜х嚎琛�
+ * @Author: liuS
+ * @Date: 2023-03-23
+ * @Version: V1.0
+ */
+public interface IMdcProductionService extends IService<MdcProduction> {
+
+    /**
+     * 鏌ヨ鎵�鏈変骇绾夸俊鎭紝骞跺垎鑺傜偣杩涜鏄剧ず
+     */
+    List<MdcProductionTreeModel> queryTreeList();
+
+    /**
+     * 鏌ヨ鎵�鏈変骇绾夸俊鎭紝骞跺垎鑺傜偣杩涜鏄剧ず(娣诲姞绯荤粺閰嶇疆)
+     */
+    List<MdcProductionTreeModel> queryTreeListByConfig();
+
+    /**
+     * 鏌ヨ鎵�鏈変骇绾夸俊鎭紝骞跺垎鑺傜偣杩涜鏄剧ず
+     */
+    List<MdcProductionTreeModel> queryTreeList(String ids);
+
+    /**
+     * 鏌ヨ鎵�鏈夐儴闂―epartId淇℃伅,骞跺垎鑺傜偣杩涜鏄剧ず
+     */
+    List<ProductionIdModel> queryProductionIdTreeList();
+
+    /**
+     * 鏍规嵁鍏抽敭瀛楁悳绱㈢浉鍏崇殑浜х嚎鏁版嵁
+     */
+    List<MdcProductionTreeModel> searchByKeyWord(String keyWord);
+
+    /**
+     * 淇濆瓨浜х嚎鏁版嵁
+     */
+    void saveProductionData(MdcProduction mdcProduction);
+
+    /**
+     * 鏇存柊浜х嚎鏁版嵁
+     */
+    boolean updateProductionDataById(MdcProduction mdcProduction);
+
+    /**
+     * 鏍规嵁浜х嚎id鍒犻櫎骞跺垹闄ゅ叾鍙兘瀛樺湪鐨勫瓙绾т骇绾�
+     */
+    boolean delete(String id);
+
+    /**
+     * 鏍规嵁浜х嚎id鎵归噺鍒犻櫎骞跺垹闄ゅ叾鍙兘瀛樺湪鐨勫瓙绾т骇绾�
+     */
+    void deleteBatchWithChildren(List<String> ids);
+
+    /**
+     * 鑾峰彇涓嬬骇浜х嚎
+     */
+    List<MdcProduction> queryProdByPid(String pid);
+
+    /**
+     * 閫掑綊鏌ヨ鎵�鏈夊瓙鑺傜偣
+     */
+    List<MdcProduction> recursionChildrenByPid(String pid);
+
+    /**
+     * 鏍规嵁鐢ㄦ埛id鑾峰彇浜х嚎涓嬫媺鏍戦�夐」
+     */
+    List<ProductionIdModel> loadProductionTreeOptions(String userId);
+
+    /**
+     * 閫掑綊鏌ヨ鎵�鏈夊瓙鑺傜偣
+     */
+    List<String> recursionChildren(String productionId);
+
+    /**
+     * 鏍规嵁鐢ㄦ埛id鍜岃溅闂磇d鑾峰彇鐢ㄦ埛鎷ユ湁鐨勮溅闂磇d
+     *
+     * @param userId
+     * @param productionId
+     * @return
+     */
+    String findFirstProduction(String userId, String productionId);
+
+    /**
+     * 鏍规嵁鐢ㄦ埛id鏌ヨ鐢ㄦ埛宸ユ鏉冮檺
+     */
+    String findThreeProductionId(String userId);
+
+    /**
+     *  鏌ヨ鎵�鏈夌埗鑺傜偣鍜屾湰鑺傜偣鍚嶇О
+     * @param id
+     * @return
+     */
+    List<String> findListParentTreeAll(String id);
+
+    /**
+     *  鏌ヨ鎵�鏈夌埗鑺傜偣鍚嶇О
+     * @param parentId
+     * @param stringList
+     * @return
+     */
+    List<String> findListParentTree(String parentId,List<String> stringList);
+
+    /**
+     * 鑾峰彇鐢ㄦ埛鎵�鍦ㄧ殑閮ㄩ棬
+     * @param userId
+     * @return
+     */
+    Map<String, MdcProduction> getUserAssignedDepart(String userId);
+
+    /**
+     * 閫氳繃涓�缁刬d鑾峰彇閮ㄩ棬
+     * @param ids
+     * @return
+     */
+    List<String> findAllProductionIds(List<String> ids);
+
+    /**
+     * 鑾峰彇鏌愪釜鑺傜偣鎵�鏈変笂绾ц妭鐐圭殑id
+     * @param parentId 鐖惰妭鐐� id
+     * @param idList 鎺ユ敹缁撴灉闆�
+     * @return
+     */
+    List<String> findParentIdsForProduction(String parentId, List<String> idList);
+
+    /**
+     * 鏌ヨ鎵�鏈変骇绾夸俊鎭紝骞跺垎鑺傜偣杩涜鏄剧ず
+     */
+    List<MdcProductionTreeModel> queryTreeListByMdc(String ids);
+
+    /**
+     * 鏌ヨ鎵�鏈変骇绾夸俊鎭紝骞跺垎鑺傜偣杩涜鏄剧ず
+     */
+    List<MdcProductionTreeModel> queryTreeListByMdc();
+
+    /**
+     * 鏌ヨ瀛愯妭鐐�
+     * @param mdcProductionIds
+     * @return
+     */
+    List<String> findChildren(List<String> mdcProductionIds);
+
+    /**
+     * 鏍规嵁鐢ㄦ埛id鑾峰彇浜х嚎(涓績)鎴栫彮缁勪笅鎷夐�夐」
+     * @param userId
+     * @param productionId
+     * @return
+     */
+    List<MdcProOptionsVo> loadProductionOptions(String userId, String productionId);
+
+    List<MdcProduction> findMdcPros(String userId, String productionId);
+
+    /**
+     *
+     * @param userId
+     * @param productionId
+     * @return
+     */
+    List<MdcProOptionsVo> loadTeamOptions(String userId, String productionId);
+
+    /**
+     *
+     * @param userId
+     * @param allProductionIds
+     * @return
+     */
+    List<String> findProIdsByUId(String userId, List<String> allProductionIds);
+
+    /**
+     *
+     * @param productionId
+     * @return
+     */
+    List<String> findChildByProId(String productionId);
+
+
+    String findProName(String equipmentId);
+
+    /**
+     * 鏍规嵁浜х嚎orgCode鏌ヨ浜х嚎
+     * @param orgCode
+     * @return
+     */
+    MdcProduction findByOrgCode(String orgCode);
+}

--
Gitblit v1.9.3