package com.fzzy.async.fzzy40.repository; import com.fzzy.async.fzzy40.entity.Fz40InoutCustomer; 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 Fzzy40Sync1212Rep extends JpaRepository { /** * 根据信息获取客户单位信息 * * @return */ @Query("from Fz40InoutCustomer where deptId=:deptId order by id ") List listInoutCustomer(@Param("deptId") String deptId); @Query("from Fz40InoutCustomer where id=:id order by id ") List getDataById(@Param("id") String id); }