package com.bocloud.ims.repository.resource.hmc;

import com.bocloud.common.utils.MapTools;
import com.bocloud.ims.entity.resource.hmc.HmcIoBus;
import com.bocloud.ims.repository.resource.common.EnhancedBaseRepository;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * 输入输出总线数据访问对象
 * 
 * @author sxp
 * @since Jun 4, 2018
 */
@Deprecated
@Repository("hmcIoBusRepository")
public class HmcIoBusRepository extends EnhancedBaseRepository<HmcIoBus, Long> {

	public void deleteByHmcServerId(Long hmcServerId) {
		String sql = "delete from hmc_io_bus where hmc_server_id = :hmcServerId";
		Map<String, Object> params = MapTools.simpleMap("hmcServerId", hmcServerId);
		this.update(sql, params);
	}

}
