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
package org.jeecg.modules.dnc.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.dnc.entity.ComponentDepartment;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.MdcProduction;
 
import java.util.List;
 
public interface ComponentDepartmentMapper extends BaseMapper<ComponentDepartment> {
 
    /**
     * 获取已分配的部门
     * @param componentId
     * @return
     */
    List<MdcProduction> getDepartPermsByComponentId(@Param("componentId") String componentId);
 
    /**
     * 获取未分配的部门
     * @param componentId
     * @return
     */
    List<MdcProduction> getDepartNonPermsByComponentId(@Param("componentId") String componentId);
}