czt
2025-06-05 00acb9d6cb8d3455e9a7c2b51722fafeb820a92c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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<MQuality, String>, JpaSpecificationExecutor<MQuality> {
 
    /**
     * 根据组织编码和仓库编码获取信息
     *
     * @param companyId
     * @param depotId
     * @return
     */
    @Query("from MQuality where companyId =:companyId and depotId =:depotId order by time DESC")
    List<MQuality> getDataByDepotId(@Param("companyId") String companyId, @Param("depotId") String depotId);
 
}