com.base4j.mvc.sys.mapper.SysDeptMapper Maven / Gradle / Ivy
The newest version!
package com.base4j.mvc.sys.mapper;
import com.base4j.mvc.sys.entity.SysDept;
import com.base4j.mybatis.base.mapper.BaseMapper;
import com.base4j.mybatis.config.mybatis.annotations.AutoMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@AutoMapper
public interface SysDeptMapper extends BaseMapper {
@Select("select id, parent_id as parentId, code, name, memo from sys_org")
List selectAllOrgs();
List selectChildNumListByParentId(@Param("parentId") long parentId);
}