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

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


@Repository
public interface KmtPlanDetailDao extends JpaRepository<KmtPlanDetail, String>{

	@Query(nativeQuery = true, value = "delete from kmt_plan_detail  where plan_template_id=?1 ")
	@Modifying
	void deletePlanDetailByTempId(String planTempId);
	
	
}
