|  |  |  | 
|---|
|  |  |  | import org.springframework.data.jpa.repository.Query; | 
|---|
|  |  |  | import org.springframework.data.repository.query.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | public interface Fzzy40Sync1023Rep extends JpaRepository<Fz40DrugLogApply, String> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //查询熏蒸备案主表 | 
|---|
|  |  |  | @Query("from Fz40DrugLogApply where deptId =:deptId") | 
|---|
|  |  |  | List<Fz40DrugLogApply> listDrugLogApply(@Param("deptId") String deptId); | 
|---|
|  |  |  | @Query("from Fz40DrugLogApply where deptId =:deptId and updateTime >=:start and updateTime <=:end") | 
|---|
|  |  |  | List<Fz40DrugLogApply> listDrugLogApply(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|