package com.ssj.service.conch.conch.service;

import com.ssj.bean.conch.conch.domain.ConchDerverUseRecord;
import com.ssj.framework.core.common.service.BaseService;

import java.util.Date;
import java.util.List;


/**
 * @author Mount Liu
 * @date 2019/7/30
 */
public interface ConchDerverUseRecordService extends BaseService<ConchDerverUseRecord, String> {

    /**
     * 查询用户使用小塾记录
     *
     * @param userId
     * @param derver
     * @return
     */
    ConchDerverUseRecord findByUserIdAndDerver(String userId, String derver);

    /**
     * 查询某天服务失效的记录
     *
     * @param oneDay
     * @return
     */
    List<ConchDerverUseRecord> findOneDayInvalidRecord(Date oneDay);

}
