管道基础大数据平台系统开发-【后端】-Server
13693261870
2023-02-14 05ffa1a7f490e1e81d6fbf1ee948db50b1fff6fc
src/main/java/com/lf/server/mapper/data/DirMapper.java
@@ -16,42 +16,56 @@
@Repository
public interface DirMapper {
    /**
     * 添加单条数据
     * 插入一条
     *
     * @param dirEntity
     * @return
     */
    public Integer insertDir(DirEntity dirEntity);
    public Integer insert(DirEntity dirEntity);
    /**
     * 批量添加
     * @param dirEntity
     * 插入多条
     *
     * @param list
     * @return
     */
    public Integer insertDirs(List<DirEntity> dirEntity);
    public Integer inserts(List<DirEntity> list);
    /**
     * 删除单条数据
     * 删除一条
     *
     * @param id
     * @return
     */
    public Integer deleteDir(int id);
    /**
     * 批量删除
     * 删除多条
     *
     * @param ids
     * @return
     */
    public Integer deleteDirs(List<Integer> ids);
    /**
     * 修改数据
     * 更新一条
     *
     * @param dirEntity
     * @return
     */
    public Integer updateDir(DirEntity dirEntity);
    public Integer update(DirEntity dirEntity);
    /**
     * 更新多条
     *
     * @param list
     * @return
     */
    public Integer updates(List<DirEntity> list);
    /**
     * 查询单条数据
     *
     * @param id
     * @return
     */
@@ -59,9 +73,23 @@
    /**
     * 查询多条数据
     *
     * @return
     */
    public List<DirEntity> selectDirAll();
    /**
     * 查询根目录
     *
     * @return
     */
    public List<DirEntity> selectDirRoot();
    /**
     * 递归查询
     *
     * @param name
     * @return
     */
    public List<DirEntity> selectDirRecursive(String name);
}