管道基础大数据平台系统开发-【后端】-Server
1
sws
2022-11-26 ab849f796bdc17236a95ea5fe5c166fb8f24a75c
src/main/java/com/lf/server/mapper/data/DirMapper.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,88 @@
package com.lf.server.mapper.data;
import com.lf.server.entity.data.DirEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
 * Dir
 * @author sws
 * @date 2022-09-24
 */
@Mapper
@Repository
public interface DirMapper {
    /**
     * æ’入一条
     *
     * @param dirEntity
     * @return
     */
    public Integer insertDir(DirEntity dirEntity);
    /**
     * æ’入多条
     *
     * @param list
     * @return
     */
    public Integer insertDirs(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);
    /**
     * æ›´æ–°å¤šæ¡
     *
     * @param list
     * @return
     */
    public Integer updateDirs(List<DirEntity> list);
    /**
     * æŸ¥è¯¢å•条数据
     *
     * @param id
     * @return
     */
    public DirEntity selectDir(int id);
    /**
     * æŸ¥è¯¢å¤šæ¡æ•°æ®
     *
     * @return
     */
    public List<DirEntity> selectDirAll();
    /**
     * é€’归查询
     *
     * @param name
     * @return
     */
    public List<DirEntity> selectDirRecursive(String name);
}