package com.fzzy.igds.repository;
|
|
import com.fzzy.igds.domain.InoutNoticeOut;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
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/29 16:34
|
*/
|
@Service
|
public interface InoutNoticeOutRepository extends JpaRepository<InoutNoticeOut, String> , JpaSpecificationExecutor<InoutNoticeOut> {
|
|
/**
|
* 根据组织编码和库区编码获取信息
|
*
|
* @param companyId
|
* @param deptId
|
* @param id
|
* @return
|
*/
|
@Query("from InoutNoticeOut where companyId =:companyId and deptId =:deptId and id =:id")
|
InoutNoticeOut getDataById(@Param("companyId") String companyId, @Param("deptId") String deptId, @Param("id") String id);
|
|
/**
|
* 根据组织编码和库区编码获取信息
|
*
|
* @param companyId
|
* @param deptId
|
* @param completeStatus
|
* @return
|
*/
|
@Query("from InoutNoticeOut where companyId =:companyId and deptId =:deptId and completeStatus =:completeStatus")
|
List<InoutNoticeOut> listNoticeOut(@Param("companyId") String companyId, @Param("deptId") String deptId, @Param("completeStatus") String completeStatus);
|
|
/**
|
* 根据组织编码和库区编码获取信息
|
*
|
* @param companyId
|
* @param completeStatus
|
* @return
|
*/
|
@Query("from InoutNoticeOut where companyId =:companyId and completeStatus =:completeStatus")
|
List<InoutNoticeOut> listNoticeOut(@Param("companyId") String companyId, @Param("completeStatus") String completeStatus);
|
|
|
}
|