package com.zhongshu.card.server.core.dao.pay;

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.zhongshu.card.client.type.ContractState;
import com.zhongshu.card.server.core.dao.pay.extend.ChinaumsSenselessUserSignInfoDaoExtend;
import com.zhongshu.card.server.core.domain.pay.ChinaumsSenselessUserSignInfo;

public interface ChinaumsSenselessUserSignInfoDao extends MongoDao<ChinaumsSenselessUserSignInfo>, ChinaumsSenselessUserSignInfoDaoExtend {

    ChinaumsSenselessUserSignInfo findTopByUserIdAndMidAndExpire(String userId, String mid, boolean expire);

    ChinaumsSenselessUserSignInfo findTopByContractNo(String contractNo);

    ChinaumsSenselessUserSignInfo findTopByUserIdAndMidAndContractStateNot(String userId, String mid, ContractState contractState);
}
