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-dnc/src/main/java/org/jeecg/modules/dnc/service/IPartsInfoService.java |  126 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 126 insertions(+), 0 deletions(-)

diff --git a/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/service/IPartsInfoService.java b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/service/IPartsInfoService.java
new file mode 100644
index 0000000..f227426
--- /dev/null
+++ b/lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/service/IPartsInfoService.java
@@ -0,0 +1,126 @@
+package org.jeecg.modules.dnc.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.dnc.entity.DocInfo;
+import org.jeecg.modules.dnc.entity.PartsInfo;
+import org.jeecg.modules.dnc.request.TreeInfoRequest;
+import org.jeecg.modules.system.entity.MdcProduction;
+import org.jeecg.modules.system.entity.SysUser;
+
+import java.util.Collection;
+import java.util.List;
+
+public interface IPartsInfoService extends IService<PartsInfo> {
+    /**
+     * 娣诲姞闆朵欢淇℃伅
+     * @param partsInfo
+     * @return
+     */
+    boolean addPartsInfo(PartsInfo partsInfo);
+
+    /**
+     * 缂栬緫闆朵欢淇℃伅
+     * @param id
+     * @param partsInfo
+     * @return
+     */
+    boolean editPartsInfo(String id, PartsInfo partsInfo);
+
+    /**
+     * 鏍规嵁鐢ㄦ埛id鑾峰彇鎺堟潈鐨勯浂浠朵俊鎭�
+     * @param userId
+     * @return
+     */
+    List<PartsInfo> getByUserPerms(String userId);
+
+    /**
+     * 鏍规嵁鐢ㄦ埛id鑾峰彇鎺堟潈鐨勯浂浠朵俊鎭�
+     * @param userId
+     * @param componentId
+     * @return
+     */
+    List<PartsInfo> getByUserPerms(String userId, String componentId, String queryParam);
+
+    /**
+     * 鏍规嵁浜у搧id鑾峰彇
+     * @param productId
+     * @return
+     */
+    List<PartsInfo> getByProductId(String productId);
+
+    /**
+     * 鏍规嵁浜у搧id 鍜岄儴浠秈d鑾峰彇
+     * @param productId
+     * @param componentId
+     * @return
+     */
+    List<PartsInfo> getByComponentId(String productId, String componentId);
+
+    /**
+     * 鏍规嵁浜у搧id鍒犻櫎涓嬮潰鐨勬墍鏈夊瓙鑺傜偣
+     * @param partsInfoList
+     * @return
+     */
+    boolean deleteCollection(List<PartsInfo> partsInfoList);
+
+    /**
+     * 鍒犻櫎闆朵欢
+     * @param partsId
+     * @return
+     */
+    boolean deletePartsInfo(String partsId);
+
+
+    /**
+     * 鍒嗛厤鐢ㄦ埛鏉冮檺
+     * @param partsInfo
+     * @param userList
+     * @return
+     */
+    boolean assignAddUser(PartsInfo partsInfo, Collection<SysUser> userList);
+
+    /**
+     * 绉婚櫎鐢ㄦ埛鏉冮檺
+     * @param partsInfo
+     * @param userList
+     * @return
+     */
+    boolean assignRemoveUser(PartsInfo partsInfo, Collection<SysUser> userList);
+    /**
+     * 鍒嗛厤閮ㄩ棬鏉冮檺
+     * @param partsInfo
+     * @param departmentList
+     * @return
+     */
+    boolean assignAddDepart(PartsInfo partsInfo, Collection<MdcProduction> departmentList);
+
+    /**
+     * 鍒嗛厤閮ㄩ棬鏉冮檺
+     * @param partsInfo
+     * @param departmentList
+     * @return
+     */
+    boolean assignRemoveDepart(PartsInfo partsInfo, Collection<MdcProduction> departmentList);
+
+    /**
+     * 鏍规嵁涓�缁勯儴浠舵煡鎵鹃浂浠�
+     * @param productId
+     * @param componentIds
+     * @return
+     */
+    List<PartsInfo> getByComponentIdList(String productId, List<String> componentIds);
+
+    /**
+     * 鑾峰彇鍞竴 闆朵欢缂栧彿
+     * @param partsCode
+     * @return
+     */
+    PartsInfo getByCode(String partsCode);
+
+    /**
+     * 閫氳繃闆朵欢鍙枫�佹潗璐ㄧ瓑鏌ヨ瀵瑰簲鐢靛瓙鏍锋澘
+     * @param treeInfoRequest
+     * @return
+     */
+    List<DocInfo> getByPartsInfo(TreeInfoRequest treeInfoRequest);
+}

--
Gitblit v1.9.3