package org.jeecg.modules.dnc.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import org.jeecg.modules.dnc.entity.ProcessSpecVersionDepartment;
|
import org.jeecg.modules.system.entity.MdcProduction;
|
|
import java.util.List;
|
|
public interface IProcessSpecVersionDepartmentService extends IService<ProcessSpecVersionDepartment> {
|
|
/**
|
* 根据工艺规程版本id删除部门权限
|
* @param psvId
|
* @return
|
*/
|
boolean deleteByPsvId(String psvId);
|
|
/**
|
* 获取已分配的部门
|
* @param psvId
|
* @return
|
*/
|
List<MdcProduction> getDepartPermsByPsvId(String psvId);
|
|
/**
|
* 获取已分配的部门
|
* @param psvId
|
* @return
|
*/
|
List<MdcProduction> getDepartNonPermsByPsvId(String psvId);
|
|
/**
|
* 查询部门权限
|
* @param psvId
|
* @param departId
|
* @return
|
*/
|
ProcessSpecVersionDepartment getByProcessSpecVersionIdAndDepartId(String psvId, String departId);
|
|
/**
|
* 移除部门权限
|
* @param processSpecVersionDepartments
|
* @return
|
*/
|
boolean removeByCollection(List<ProcessSpecVersionDepartment> processSpecVersionDepartments);
|
|
/**
|
* 查询一组部门权限
|
* @param psvIds
|
* @param ids
|
* @return
|
*/
|
List<ProcessSpecVersionDepartment> getByPsvIdsAndDepartIds(List<String> psvIds, List<String> ids);
|
}
|