| package com.fzzy.async.fzzy30.repository; | 
|   | 
| import com.fzzy.async.fzzy30.entity.InoutSettle; | 
| import org.springframework.data.jpa.repository.JpaRepository; | 
| import org.springframework.data.jpa.repository.Query; | 
| import org.springframework.data.repository.query.Param; | 
|   | 
| import java.util.Date; | 
| import java.util.List; | 
|   | 
| /** | 
|  * 粮食入库结算 | 
|  */ | 
| public interface FzzySync1204Rep extends JpaRepository<InoutSettle, String> { | 
|   | 
|     /** | 
|      * 获取出入库结算信息 | 
|      * @param type | 
|      * @param start | 
|      * @param end | 
|      * @return | 
|      */ | 
|     @Query("from InoutSettle where type=:type and payTime >=:start and payTime <:end order by payTime ") | 
|     List<InoutSettle> listInoutSettle(@Param("type") String type, @Param("start") Date start, @Param("end") Date end); | 
| } |