23 lines
522 B
Java
23 lines
522 B
Java
package com.designhub.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.designhub.entity.Department;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 部门Mapper接口
|
|
*/
|
|
@Mapper
|
|
public interface DepartmentMapper extends BaseMapper<Department> {
|
|
|
|
/**
|
|
* 查询部门树形结构
|
|
*/
|
|
@Select("SELECT * FROM sys_dept WHERE deleted = 0 ORDER BY sort_order ASC")
|
|
List<Department> selectDeptTree();
|
|
}
|
|
|