package com.fzzy.igds.dzhwk.service.repository; import com.fzzy.igds.dzhwk.domain.MQuality; 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 2024/12/02 16:33 */ @Service public interface QualityManageRepository extends JpaRepository, JpaSpecificationExecutor { /** * 根据组织编码和仓库编码获取信息 * * @param companyId * @param depotId * @return */ @Query("from MQuality where companyId =:companyId and depotId =:depotId order by time DESC") List getDataByDepotId(@Param("companyId") String companyId, @Param("depotId") String depotId); }