|  |  |  | 
|---|
|  |  |  | package com.fzzy.async.fzzy35.repository; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.fzzy.async.fzzy35.entity.Fz35Depot; | 
|---|
|  |  |  | import com.fzzy.async.fzzy35.entity.Fz35DepotStore; | 
|---|
|  |  |  | 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 Fzzy35Sync1208Rep extends JpaRepository<Fz35Depot, String> { | 
|---|
|  |  |  | public interface Fzzy35Sync1208Rep extends JpaRepository<Fz35DepotStore, String> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据信息获取仓库信息 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Query("from Fz35Depot where deptId=:deptId order by id ") | 
|---|
|  |  |  | List<Fz35Depot> listDepot(@Param("deptId") String deptId); | 
|---|
|  |  |  | @Query("from Fz35DepotStore where deptId=:deptId and createDate >=:start and createDate <:end order by createDate ") | 
|---|
|  |  |  | List<Fz35DepotStore> listDepot(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据信息获取仓库信息 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Query("from Fz35DepotStore where createDate >=:start and createDate <:end order by createDate ") | 
|---|
|  |  |  | List<Fz35DepotStore> listDepot(@Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  | } | 
|---|