package com.fzzy.igds.repository;
|
|
import com.fzzy.igds.domain.InoutSysConf;
|
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 2025/11/27 20:23
|
*/
|
@Service
|
public interface InoutSysConfRepository extends JpaRepository<InoutSysConf, String> {
|
|
/**
|
* 根据组织编码和库区编码获取信息
|
*
|
* @param companyId
|
* @param deptId
|
* @return
|
*/
|
@Query("from InoutSysConf where companyId =:companyId and deptId =:deptId")
|
InoutSysConf getInoutSysConf(@Param("companyId") String companyId, @Param("deptId") String deptId);
|
|
|
/**
|
* 根据id获取信息
|
*
|
* @param parentId
|
* @return
|
*/
|
@Query("from InoutSysConf where deptId like:parentId order by deptId")
|
List<InoutSysConf> getDataByParentId(@Param("parentId") String parentId);
|
|
/**
|
* 根据companyId获取信息
|
*
|
* @param companyId
|
* @return
|
*/
|
@Query("from InoutSysConf where deptId =:id order by deptId")
|
List<InoutSysConf> getDataById(@Param("id") String id);
|
|
}
|