| package com.fzzy.async.fzzy40.repository; | 
|   | 
| import com.fzzy.async.fzzy40.entity.Fz40DepotBookStore; | 
| 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 Fzzy40Sync1211Rep extends JpaRepository<Fz40DepotBookStore, String> { | 
|   | 
|     /** | 
|      * 根据库区编码及时间获取账面库存信息 | 
|      * | 
|      * @return | 
|      */ | 
|     @Query("from Fz40DepotBookStore where deptId=:deptId and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") | 
|     List<Fz40DepotBookStore> listDepot(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); | 
| } |