|  |  |  | 
|---|
|  |  |  | package com.fzzy.async.fzzy35.repository; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.fzzy.async.fzzy35.entity.MContract; | 
|---|
|  |  |  | import com.fzzy.async.fzzy35.entity.Fz35DefaultDept; | 
|---|
|  |  |  | import com.fzzy.async.fzzy35.entity.Fz35MContract; | 
|---|
|  |  |  | import org.springframework.data.jpa.repository.JpaRepository; | 
|---|
|  |  |  | import org.springframework.data.jpa.repository.Query; | 
|---|
|  |  |  | import org.springframework.data.repository.query.Param; | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 粮食购销-合同信息数据接口数据获取 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public interface Fzzy35Sync1102Rep extends JpaRepository<MContract, String> { | 
|---|
|  |  |  | public interface Fzzy35Sync1102Rep extends JpaRepository<Fz35DefaultDept, String> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据信息获取合同信息 | 
|---|
|  |  |  | * 获取单位或库区信息 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param start | 
|---|
|  |  |  | * @param end | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Query("from MContract where deptId=:deptId and createTime >=:start and createTime <:end order by createTime ") | 
|---|
|  |  |  | List<MContract> listContract(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); | 
|---|
|  |  |  | @Query("from Fz35DefaultDept where id=:id ") | 
|---|
|  |  |  | List<Fz35DefaultDept> listApi1102(@Param("id") String id); | 
|---|
|  |  |  | } | 
|---|