陈战涛
2023-05-09 b3ae531ee3b12fa191dc0aa656957bc00ef8ae4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.fzzy.async.fzzy30.repository;
 
import com.fzzy.async.fzzy30.entity.Depot;
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 FzzySync1208Rep extends JpaRepository<Depot, String> {
 
    /**
     * 根据信息获取仓库信息
     *
     * @return
     */
    @Query("from Depot where deptId=:deptId order by id ")
    List<Depot> listDepot(@Param("deptId") String deptId);
}