package com.cftech.base.org.dao;

import com.cftech.base.org.model.TerminalUser;
import com.cftech.core.generic.GenericDao;

import java.util.Map;

/**
 * terminalUserMapper
 * Created by lisw 20/02/2017.
 */
public interface TerminalUserMapper extends GenericDao<TerminalUser> {
	/**
	 * 查询某人员下的绑定的终端ID  
	 * @param id :人员ID
	 * @return  101,102,103,104,113
	 */
	public Map<String,Object> getTerminalPro(Long id);
	/**
	 * 删除此人员下面的所有绑定的终端
	 * @param id
	 * @return
	 */
	public boolean removeTerminal(Long id);
	
	/**
	 * 为人员绑定终端
	 * @param params
	 * @return
	 */
	public int saveBatchTerminalUser(Map<String, Object> params);
}
