package com.iformall.mapper;

import com.iformall.common.CommonMapper;
import com.iformall.domain.po.WxBillProperty;
import com.iformall.domain.po.WxBillRent;
import com.iformall.domain.po.WxPropertyContract;
import com.iformall.domain.po.WxRentContract;

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

/**
 * @author gongbiao
 */
public interface WxPropertyContractMapper extends CommonMapper<WxPropertyContract, String> {

	List<WxPropertyContract> findList(WxPropertyContract wxPropertyContract);

	List<Map<String,Object>> queryPropertyContractData(WxPropertyContract wxRentContract);

	int queryRentContractWaitSignStatus(WxPropertyContract wxRentContract);

	int queryRentContractEndSoonStatus(WxPropertyContract wxRentContract);

	int queryRentContractPaidStatus(WxPropertyContract wxRentContract);

	int queryRentContractEndStatus(WxPropertyContract wxRentContract);

	int updateRentContractEndSoonStatus(WxPropertyContract wxRentContract);

	int updateRentContractPaidStatus(WxPropertyContract wxRentContract);

	int updateRentContractEndStatus(WxPropertyContract wxRentContract);

	void updateRentWaitSignStatus(WxPropertyContract wxRentContract);

	void updateRentInvalidStatus(WxPropertyContract wxRentContract);

	List<WxRentContract> getRentContractListByShop(Map<String, Object> params);

	List<WxRentContract> getRentContractListByPoint(Map<String, Object> params);

	void updateApplyStatus(WxPropertyContract wxPropertyContract);

	void updateStatus(WxPropertyContract wxPropertyContract);

	long queryOweCount(WxPropertyContract wxPropertyContract);

	void updateStatusByRentContractId(WxPropertyContract wxPropertyContract);

	WxPropertyContract findOneByRentId(WxRentContract wxRentContract);

	WxPropertyContract getByBill(WxBillProperty billRent);
}
