package com.palmnest.dao.dorm;

import java.util.List;
import java.util.Map;

import com.palmnest.application.bean.Page;
import com.palmnest.application.dto.input.DormRoomerListDto;
import com.palmnest.dao.GenericDao;
import com.palmnest.model.dorm.DormCheckOut;

/**
 * 退宿申请单DAO接口类
 *
 * @author longmeizhen
 */
public interface DormCheckOutDao extends GenericDao<DormCheckOut, Long> {

	/**
	 * 获取pc端的退宿列表信息
	 *
	 * @param dto
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public Page getDormCheckOutList(DormRoomerListDto dto, int pageNo, int pageSize);

	/**
	 * 获取微信端的退宿申请列表
	 *
	 * @param openId
	 * @return
	 */
	public List<Map<String, Object>> getCheckOutListByCreator(String orgId, String idCard, String mobile);

	/**
	 * 判断该项目下该用户是否还存在未处理完的退房信息
	 *
	 * @param openId
	 * @param orgId
	 * @return
	 */
	public int hasCheckOutByStatus(String orgId, String idCard, String mobile);

	/**
	 * 获取退宿申请status状态下的数量
	 */
	public int getDormCheckOutIndex(String status, String orgIds);

}
