package com.dtok.repository;
import com.dtok.entity.ScriptHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.Param;

import java.util.Date;
import java.util.List;

/**
 * @Description  
 * @Author  C.J
 * @Date 2024-03-09 
 */

public interface ScriptHistoryRepository  extends JpaRepository<ScriptHistory, String>, JpaSpecificationExecutor<ScriptHistory> {


    List<ScriptHistory> searchAllByScriptId(String id);


    ScriptHistory findFirstByScriptId(String id);
    void deleteAllByScriptId(@Param("scriptId") String scriptId);

}
