| | |
| | | @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 |
| | | */ |
| | | public DirEntity selectDir(int id); |
| | | |
| | | /** |
| | | * 根据Code查询目录 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public DirEntity selectByCode(String code); |
| | | |
| | | /** |
| | | * 查询多条数据 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<DirEntity> selectDirAll(); |
| | | |
| | | /** |
| | | * 查询根目录 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<DirEntity> selectDirRoot(); |
| | | |
| | | /** |
| | | * 查询项目 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | public List<DirEntity> selectProject(String name); |
| | | |
| | | /** |
| | | * 递归查询 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public List<DirEntity> selectRecursiveById(Integer id); |
| | | |
| | | /** |
| | | * 递归查询 |
| | | * |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | public List<DirEntity> selectByPid(int pid); |
| | | |
| | | /** |
| | | * 查询项目目录树 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<DirEntity> selectDirsForPrj(); |
| | | |
| | | /** |
| | | * 根据父ID查找最大排序号 |
| | | * |
| | | * @return |
| | | */ |
| | | public Integer selectMaxOrderNum(); |
| | | |
| | | /** |
| | | * 根据名称查找目录 |
| | | * |
| | | * @param name |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | public DirEntity selectDirByName(String name, Integer pid); |
| | | |
| | | /** |
| | | * 根据编码查询名称 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public String selectNameByCode(String code); |
| | | } |