package com.goafanti.common.dao;

import com.goafanti.ambSystem.bo.AmbAll;
import com.goafanti.ambSystem.bo.OutAmbDtails;
import com.goafanti.common.model.AmbSystem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AmbSystemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AmbSystem record);

    int insertSelective(AmbSystem record);

    AmbSystem selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AmbSystem record);

    int updateByPrimaryKey(AmbSystem record);

    List<AmbAll> getAncestorsList(List<String> list);

    List<AmbSystem> selectByParameter(AmbSystem a);

    int selectByName(String name);

    OutAmbDtails selectDtailsAmb(Long id);


    int updateAncestorsNames(@Param(value = "id") Long id, @Param(value = "name")String name, @Param(value = "useName")String useName);


    List<AmbSystem> selectBySuperId(AmbSystem ambSystem);
}
