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

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

@Repository
public interface PicturePreDealDao extends JpaRepository<PicturePreDeal, String> {

    @Query(nativeQuery = true, value = "select  * from scon_picture_ai_predeal where homework_picture_id=?1 limit 1")
    PicturePreDeal findByHomeworkPictureId (String homeworkPictureId);
}
