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

import net.northking.cctp.scriptcase.db.entity.AtuElementGroup;
import net.northking.cctp.scriptcase.db.mapper.AtuElementGroupMapper;
import net.northking.cctp.scriptcase.dto.elementLibrary.AtuElementGroupDetailDto;
import net.northking.cctp.scriptcase.dto.elementLibrary.AtuElementGroupMoveDto;
import net.northking.cctp.scriptcase.dto.elementLibrary.AtuElementGroupQueryDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Mybatis数据库持久层（业务层）：元素目录管理
 *
 * <p>文件内容由代码生成器产生，请不要手动修改！ <br>
 * createdate:  2022-11-04 09:57:41  <br>
 * @author:  maven-cctp-plugin  <br>
 * @since:  1.0 <br>
 */
@Repository
public interface AtuElementGroupDao extends AtuElementGroupMapper
{
    int updateChildNamePath(@Param("tree") AtuElementGroup childTrees, @Param("newPath") String namePathNew);

    List<AtuElementGroupDetailDto> selectElementTree(AtuElementGroupQueryDto elementGroupQueryDto);

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

    int countMaxLevelNo(AtuElementGroup queryLevel);

    void updateSeqByMove(AtuElementGroupMoveDto childUp);

    int updateChildIdPath(@Param("tree") AtuElementGroup child, @Param("newPath") String idPath);

    List<String> queryChildrenTreeIds(String treeId);



}
