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);
|
}
|