package com.ssj.dao.sys.revise.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.ssj.bean.sys.revise.domain.HomeworkRevise;

import java.util.List;

/**
 * @author chchen
 */
@Repository
public interface HomeworkReviseDao extends JpaRepository<HomeworkRevise, String> {
    /**
     * 根据作业id查询作业错题的订正图片
     */
    @Query(nativeQuery = true, value = "select image_url from scon_work_image_revise where work_id = ?1")
    List<String> findImageByWorkId (String workId);
}
