Lius
2025-03-21 87874019eefbe03dd429b5b7eed49d963ef03c88
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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);
}