package com.ssj.dao.sys.picturepredeal.dao;

import com.ssj.bean.sys.picturepredeal.domain.ProblemSimilarPredeal;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * @Author: chchen
 * @Description
 * @Date Create in 11:34 2019/10/24
 * @Modified By
 */
@Repository
public interface ProblemSimilarPreDealDao extends JpaRepository<ProblemSimilarPredeal, String> {

    @Query(nativeQuery = true, value = "select  * from scon_problem_similar_predeal where problem_picture_id=?1 limit 1")
    ProblemSimilarPredeal findByProblemPictureId (String problemPictureId);
}
