All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.freegeese.maven.plugin.autocode.demo.base.TreeableMapper Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
package com.github.freegeese.maven.plugin.autocode.demo.base;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/4/12.
 */
public interface TreeableMapper extends SortableMapper {
    /**
     * 查询同级第一个节点
     *
     * @param target
     * @return
     */
    E selectFirst(E target);

    /**
     * 查询同级最后一个节点
     *
     * @param target
     * @return
     */
    E selectLast(E target);


    /**
     * 获取子节点
     *
     * @param parent
     * @param deep
     * @return
     */
    List selectChildren(@Param("entity") E parent, @Param("deep") boolean deep);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy