package com.ssj.dao.kmt.kmt.dao;

import com.ssj.bean.kmt.kmt.domain.KmtPlanTemplate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface KmtPlanTemplateDao extends JpaRepository<KmtPlanTemplate, String>{
	
	@Query(nativeQuery = true, value = " SELECT * from kmt_plan_template t where t.teacher_id=?1 AND t.state=1 ORDER BY t.create_time asc  ")
	public List<KmtPlanTemplate> findPlanByList(String teacherId);
	

}
