czt
2025-09-23 6cdbfc0201a5a3aaae1e0d264b613114461fbd06
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
26
27
28
29
package com.fzzy.async.fzzy61.repository;
 
import com.fzzy.async.fzzy61.entity.Fz61InoutCustomer;
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 Fzzy61Sync1212Rep extends JpaRepository<Fz61InoutCustomer, String> {
 
    /**
     * 根据信息获取客户单位信息
     *
     * @return
     */
    @Query("from Fz61InoutCustomer where deptId=:deptId order by id ")
    List<Fz61InoutCustomer> listInoutCustomer(@Param("deptId") String deptId);
 
    @Query("from Fz61InoutCustomer where deptId=:deptId and updateTime >=:start and updateTime <=:end order by id ")
    List<Fz61InoutCustomer> listInoutCustomer(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end);
 
    @Query("from Fz61InoutCustomer where id=:id order by id ")
    List<Fz61InoutCustomer> getDataById(@Param("id") String id);
}