package com.ssj.dao.sys.assessment.dao;

import com.ssj.bean.sys.assessment.domain.TeacherAssess;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author Mount Liu
 * @date 2019/2/26
 */
@Repository
public interface TeacherAssessDao extends JpaRepository<TeacherAssess, String> {

    /**
     * 根据老师id和作业id查询家长对老师的评价
     */
    TeacherAssess findByTeacherIdAndHomeworkId(String teacherId, String homeworkId);

    /**
     *  查询家长对小孩科目绑定老师的评价
     * @param teacherId
     * @param parentId
     * @param subject
     * @return
     */
    TeacherAssess findByTeacherIdAndParentIdAndSubject(String teacherId, String parentId, String subject);
}
