陈战涛
2023-05-09 8f432dc748b977cbf7f0f80a8da4ff83569df363
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.fzzy35.repository;
 
import com.fzzy.async.fzzy35.entity.Building;
import com.fzzy.async.fzzy35.entity.MContract;
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 Fzzy35Sync1103Rep extends JpaRepository<MContract, String> {
 
    /**
     * 获取仓房信息
     *
     * @return
     */
    @Query("from Building where deptId=:deptId ")
    List<Building> listBuilding(@Param("deptId") String deptId);
}