package com.palmnest.dao.estateserve;

import java.util.Map;

import org.springframework.ui.ModelMap;

import com.palmnest.application.core.util.Pages;
import com.palmnest.dao.GenericDao;
import com.palmnest.model.estateserve.DepositItemInformationForm;

/**
 * 服务项基础押金信息管理DAO
 *
 * @author xiemin
 */
public interface ServicePackBasicsDao extends GenericDao<DepositItemInformationForm, Integer> {

	/**
	 * 查询服务项列表
	 *
	 * @param modelMap
	 * @return
	 * @throws Exception
	 */
	public Pages<Map<String, String>> queryServicePackBasicsList(ModelMap modelMap) throws Exception;

	/**
	 * 添加服务项基础信息
	 *
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public int addServicePackBasics(Map<String, String> map) throws Exception;

	/**
	 * 删除基础信息
	 *
	 * @param id
	 * @param isEnabled
	 * @return
	 * @throws Exception
	 */
	public int deleteServicePackBasics(Integer id, String isEnabled) throws Exception;

	/**
	 * 根据用户名查询
	 *
	 * @param name
	 * @return
	 * @throws Exception
	 */
	public String findByName(String name) throws Exception;

	/**
	 * 查询服务项基础信息
	 *
	 * @param id
	 * @return
	 */
	public Map<String, String> findDetails(int id) throws Exception;

}
