/**
 * Description: ReportChannelDepartRel数据访问实现类
 * Copyright:   Copyright (c)2017
 * Company:     江苏三六五网络股份有限公司
 *
 * @author: 江苏三六五网络股份有限公司
 * @version: 1.0
 * Create at:   2017-07-17 上午 10:14:20
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2017-07-17   江苏三六五网络股份有限公司   1.0         Initial
 */
package com.house365.ws.dao.impl;

import com.beust.jcommander.internal.Lists;
import org.springframework.stereotype.Repository;
import com.house365.dao.system.impl.DefaultDaoImpl;

import com.house365.ws.dao.interfaces.IReportChannelDepartRelDao;
import com.house365.beans.entity.ReportChannelDepartRelEntity;

import java.util.HashMap;
import java.util.Map;

/**
 * ReportChannelDepartRel数据访问实现类<br>
 *
 * @author 江苏三六五网络股份有限公司
 * @version 1.0, 2017-07-17
 * @see
 * @since 1.0
 */
@Repository("reportChannelDepartRelDao")
public class ReportChannelDepartRelDaoImpl extends DefaultDaoImpl<ReportChannelDepartRelEntity> implements IReportChannelDepartRelDao<ReportChannelDepartRelEntity> {

    @Override
    public void deleteByChannelId(Integer[] ids) {
        Map<String, Object> map = new HashMap<>();
        map.put("ids", ids);
        getWriteTemplate().delete(getStatement(), map);
    }
}
