/*
* Copyright (c) 京北方信息技术股份有限公司 Corporation 2022 . All rights reserved.
*
*/
package net.northking.cctp.dataPool.db.dao;

import net.northking.cctp.dataPool.db.entity.DataSetTree;
import net.northking.cctp.dataPool.db.mapper.DataSetTreeMapper;
import net.northking.cctp.dataPool.dto.dataSets.DataSetTreeDetailDto;
import net.northking.cctp.dataPool.dto.dataSets.DataSetTreeMoveDto;
import net.northking.cctp.dataPool.dto.dataSets.DataSetTreeQueryDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Mybatis数据库持久层（业务层）：数据集树目录表
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2022-10-24 16:58:38  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Repository
public interface DataSetTreeDao extends DataSetTreeMapper
{
    /**
     * 修改子节点名称路径
     * @param childSetTree
     * @param namePathNew
     * @return
     */
    int updateChildNamePath(@Param("tree") DataSetTree childSetTree, @Param("newPath") String namePathNew);

    /**
     * 条件查询数据集目录节点
     * @param setTreeQueryDto
     * @return
     */
    List<DataSetTreeDetailDto> selectDataSetTree(DataSetTreeQueryDto setTreeQueryDto);

    /**
     * 根据目录id查询子目录列表
     * @param treeId
     * @return
     */
    List<DataSetTreeDetailDto> queryChildrenTreeList(String treeId);

    List<DataSetTree> queryByIds(List<String> list);

    int countMaxLevelNo(DataSetTree queryLevel);

    void updateSeqByMove(DataSetTreeMoveDto childUp);

    int updateChildIdPath(@Param("tree") DataSetTree child, @Param("newPath") String path);

    // ----      The End by Generator     ----//

}
