package cn.orionsec.ops.dao;

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

import java.util.List;

public interface ApplicationReleaseMachineDAO extends BaseMapper<ApplicationReleaseMachineDO> {

    /**
     * 查询发布机器状态
     *
     * @param releaseId releaseId
     * @return rows
     */
    List<ApplicationReleaseMachineDO> selectStatusByReleaseId(@Param("releaseId") Long releaseId);

    /**
     * 查询发布机器状态
     *
     * @param releaseIdList releaseIdList
     * @return rows
     */
    List<ApplicationReleaseMachineDO> selectStatusByReleaseIdList(@Param("releaseIdList") List<Long> releaseIdList);

    /**
     * 查询发布机器状态
     *
     * @param id id
     * @return row
     */
    ApplicationReleaseMachineDO selectStatusById(@Param("id") Long id);

    /**
     * 查询发布机器状态
     *
     * @param idList idList
     * @return rows
     */
    List<ApplicationReleaseMachineDO> selectStatusByIdList(@Param("idList") List<Long> idList);

}
