package com.fzzy.igds.sys.repository;
|
|
import com.fzzy.igds.dzhwk.domain.Building;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.repository.query.Param;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* @Description
|
* @Author CZT
|
* @Date 2024/11/20 18:33
|
*/
|
@Service
|
public interface BuildingRepository extends JpaRepository<Building, String> {
|
|
/**
|
* 根据组织编码和库区编码获取系统配置信息
|
*
|
* @param companyId
|
* @param deptId
|
* @return
|
*/
|
@Query("from Building where companyId =:companyId and deptId =:deptId order by id")
|
List<Building> getBuilding(@Param("companyId") String companyId, @Param("deptId") String deptId);
|
|
/**
|
* 根据组织编码获取系统配置信息
|
*
|
* @param companyId
|
* @return
|
*/
|
@Query("from Building where companyId =:companyId order by id")
|
List<Building> getBuilding(@Param("companyId") String companyId);
|
}
|