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<ComponentDepartment> {
|
/**
|
* 根据部件id删除部门权限
|
* @param componentId
|
* @return
|
*/
|
boolean deleteByComponentId(String componentId);
|
|
|
/**
|
* 获取已分配的部门
|
* @param componentId
|
* @return
|
*/
|
List<MdcProduction> getDepartPermsByComponentId(String componentId);
|
|
/**
|
* 获取未分配的部门
|
* @param componentId
|
* @return
|
*/
|
List<MdcProduction> getDepartNonPermsByComponentId(String componentId);
|
|
/**
|
* 获取唯一的部门权限
|
* @param componentId
|
* @param departId
|
* @return
|
*/
|
ComponentDepartment getByComponentIdAndDepartId(String componentId, String departId);
|
|
/**
|
* 删除部门权限
|
* @param componentDepartments
|
* @return
|
*/
|
boolean removeByCollection(List<ComponentDepartment> componentDepartments);
|
|
/**
|
* 查询一组部门权限
|
* @param componentIds
|
* @param ids
|
* @return
|
*/
|
List<ComponentDepartment> getByComponentIdsAndDepartIds(List<String> componentIds, List<String> ids);
|
}
|