package com.sw.mes.yb.deviceCheck.dao;

import com.sw.mes.core.base.BaseDao;
import com.sw.mes.yb.deviceCheck.entity.SpotCheck;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface SpotCheckDAO extends BaseDao<SpotCheck, Long> {

    @Query(value = "SELECT * FROM zhxx_operate_spot_check WHERE name=?1 ", nativeQuery = true)
    List<SpotCheck> findByName(String name);
}
