package cn.orionsec.ops.dao;

import cn.orionsec.ops.entity.domain.ApplicationRepositoryDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplicationRepositoryDAO extends BaseMapper<ApplicationRepositoryDO> {

    /**
     * 通过id查询名称
     *
     * @param idList idList
     * @return rows
     */
    List<ApplicationRepositoryDO> selectNameByIdList(@Param("idList") List<Long> idList);

    /**
     * 通过名称查询id
     *
     * @param nameList nameList
     * @return rows
     */
    List<ApplicationRepositoryDO> selectIdByNameList(@Param("nameList") List<String> nameList);

}
