YYC
2023-08-07 0c264f29e3f46cb76a0280d52254672b4d571696
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.fzzy.async.fzzy40.repository;
 
import com.fzzy.async.fzzy40.entity.Fz40InoutContract;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.List;
 
/**
 * 粮食购销-合同信息数据接口数据获取
 */
public interface Fzzy40Sync1201Rep extends JpaRepository<Fz40InoutContract, String> {
 
    /**
     * 根据信息获取合同信息
     *
     * @param start
     * @param end
     * @return
     */
//    @Query("from Fz40InoutContract where deptId=:deptId and updateTime >=:start and updateTime <:end order by updateTime ")
//    List<Fz40InoutContract> listContract(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end);
    @Query("from Fz40InoutContract where deptId=:deptId order by updateTime ")
    List<Fz40InoutContract> listContract(@Param("deptId") String deptId);
}