package com.tykj.dev.device.selfcheck.repository;

import com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

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

/**
 * @author dengdiyi
 */
public interface SelfCheckBillDao extends JpaRepository<SelfCheckBill, Integer>, JpaSpecificationExecutor<SelfCheckBill> {
//    @Query("select o from SelfCheckBill o where o.createTime <= :startTime)
////    List<SelfCheckBill> findall(String unitName, Date startTime);

    List<SelfCheckBill> findAllByCreateTimeAfterAndCheckUnitAndCheckStatusAndCreateUserId(Date date,String unitName,Integer status,Integer userId);
}
