27 lines
1006 B
Java
27 lines
1006 B
Java
|
package com.xkrs.dao;
|
||
|
|
||
|
import com.xkrs.model.entity.QcInspectionDataSource;
|
||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||
|
import org.springframework.data.jpa.repository.Query;
|
||
|
import org.springframework.stereotype.Component;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
@Component
|
||
|
public interface QcInspectionDataSourceDao extends JpaRepository<QcInspectionDataSource, Long>, JpaSpecificationExecutor<QcInspectionDataSource> {
|
||
|
|
||
|
/**
|
||
|
* 查询质检数据源
|
||
|
*
|
||
|
* @param lotNo 批次号
|
||
|
* @param machineNo 机器号
|
||
|
* @param materialNo 物料号
|
||
|
* @param modelNo 模具号
|
||
|
* @param partNo 零件号
|
||
|
* @return
|
||
|
*/
|
||
|
@Query(value = "from QcInspectionDataSource where lotNo = ? and machineNo = ?and materialNo = ?and modelNo = ?and partNo = ?")
|
||
|
List<QcInspectionDataSource> selectDataSource(String lotNo, String machineNo, String materialNo, String modelNo, String partNo);
|
||
|
|
||
|
}
|