package org.jeecg.modules.dnc.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import org.jeecg.modules.dnc.entity.PermissionStream;
|
|
import java.util.List;
|
|
public interface IPermissionStreamService extends IService<PermissionStream> {
|
/**
|
* 根据产品编号,用户编号查找权限
|
* @param productId
|
* @param userId
|
* @return
|
*/
|
PermissionStream getByProductIdAndUserId(String productId, String userId);
|
/**
|
* 根据部件编号,用户编号查找权限
|
* @param productId
|
* @param componentId
|
* @param userId
|
* @return
|
*/
|
PermissionStream getByComponentIdAndUserId(String productId, String componentId, String userId);
|
|
/**
|
* 根据零件编号,用户编号查找权限
|
* @param productId
|
* @param componentId
|
* @param userId
|
* @param partsId
|
* @return
|
*/
|
PermissionStream getByPartsIdAndUserId(String productId, String componentId, String partsId, String userId);
|
|
/**
|
* 根据产品编号查找部门权限
|
* @param productId
|
* @return
|
*/
|
List<PermissionStream> getByProductId(String productId);
|
/**
|
* 根据部件编号查找部门权限
|
* @param productId
|
* @param componentId
|
* @return
|
*/
|
List<PermissionStream> getByComponentId(String productId, String componentId);
|
|
/**
|
* 根据零件编号查找部门权限
|
* @param productId
|
* @param componentId
|
* @param partsId
|
* @return
|
*/
|
List<PermissionStream> getByPartsId(String productId, String componentId, String partsId);
|
|
/**
|
* 删除用户权限
|
* @param productId
|
* @return
|
*/
|
boolean deleteUserPermsByProductId(String productId);
|
/**
|
* 删除用户权限
|
* @param productId
|
* @return
|
*/
|
boolean deleteUserPermsByComponentId(String productId, String componentId);
|
/**
|
* 删除用户权限
|
* @param productId
|
* @return
|
*/
|
boolean deleteUserPermsByPartsId(String productId, String componentId, String partsId);
|
|
/**
|
* 删除部门权限
|
* @param productId
|
* @return
|
*/
|
boolean deleteDepartPermsByProductId(String productId);
|
/**
|
* 删除部门权限
|
* @param productId
|
* @return
|
*/
|
boolean deleteDepartPermsByComponentId(String productId, String componentId);
|
/**
|
* 删除部门权限
|
* @param productId
|
* @return
|
*/
|
boolean deleteDepartPermsByPartsId(String productId, String componentId, String partsId);
|
|
/**
|
* 移除权限数据
|
* @param permissionStreamList
|
* @return
|
*/
|
boolean removeByCollection(List<PermissionStream> permissionStreamList);
|
|
/**
|
* 查询产品的唯一部门权限
|
* @param productId
|
* @param departId
|
* @return
|
*/
|
PermissionStream getByProductIdAndDepartId(String productId, String departId);
|
|
/**
|
* 根据部件编号,用户编号查找权限
|
* @param productId
|
* @param componentId
|
* @param departId
|
* @return
|
*/
|
PermissionStream getByComponentIdAndDepartId(String productId, String componentId, String departId);
|
|
/**
|
* 根据零件编号,用户编号查找权限
|
* @param productId
|
* @param componentId
|
* @param departId
|
* @param partsId
|
* @return
|
*/
|
PermissionStream getByPartsIdAndDepartId(String productId, String componentId, String partsId, String departId);
|
|
/**
|
* 获取部门关联的权限信息
|
* @param departId
|
* @return
|
*/
|
List<PermissionStream> findByDepartId(String departId);
|
|
/**
|
* 获取用户的关联权限数据
|
* @param userId
|
* @return
|
*/
|
List<PermissionStream> findByUserId(String userId);
|
|
/**
|
* 查询部件下的权限信息
|
* @param componentIds
|
* @param userIds
|
* @return
|
*/
|
List<PermissionStream> getByComponentIdsAndUserIds(List<String> componentIds, List<String> userIds);
|
|
/**
|
* 查询部件下的权限信息
|
* @param componentIds
|
* @param departIds
|
* @return
|
*/
|
List<PermissionStream> getByComponentIdsAndDepartIds(List<String> componentIds, List<String> departIds);
|
/**
|
* 查询零件下的权限信息
|
* @param partsIds
|
* @param userIds
|
* @return
|
*/
|
List<PermissionStream> getByPartsIdsAndUserIds(List<String> partsIds, List<String> userIds);
|
|
/**
|
* 查询零件下的权限信息
|
* @param partsIds
|
* @param departIds
|
* @return
|
*/
|
List<PermissionStream> getByPartsIdsAndDepartIds(List<String> partsIds, List<String> departIds);
|
}
|