mitao
2024-12-03 0832f454bc53eafee9c6b7eedb32481a021257c3
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
package com.sinata.system.mapper;
 
import com.sinata.system.domain.SysDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * <p>
 * 区域表 Mapper 接口
 * </p>
 *
 * @author mitao
 * @since 2024-12-02
 */
@Mapper
public interface SysDepartmentMapper extends BaseMapper<SysDepartment> {
    /**
     * 根据类型查询用户区域列表
     * @param userId
     * @param type
     * @return
     */
    List<SysDepartment> getDepartmentListByType(@Param("userId") Long userId, @Param("type") Integer type);
}