package org.jeecg.modules.dnc.service; import com.baomidou.mybatisplus.extension.service.IService; import org.jeecg.modules.dnc.entity.ComponentDepartment; import org.jeecg.modules.system.entity.MdcProduction; import java.util.List; public interface IComponentDepartmentService extends IService { /** * 根据部件id删除部门权限 * @param componentId * @return */ boolean deleteByComponentId(String componentId); /** * 获取已分配的部门 * @param componentId * @return */ List getDepartPermsByComponentId(String componentId); /** * 获取未分配的部门 * @param componentId * @return */ List getDepartNonPermsByComponentId(String componentId); /** * 获取唯一的部门权限 * @param componentId * @param departId * @return */ ComponentDepartment getByComponentIdAndDepartId(String componentId, String departId); /** * 删除部门权限 * @param componentDepartments * @return */ boolean removeByCollection(List componentDepartments); /** * 查询一组部门权限 * @param componentIds * @param ids * @return */ List getByComponentIdsAndDepartIds(List componentIds, List ids); }