package com.zjty.autotest.dao;

import com.zjty.autotest.pojo.sjq.AutoResultSet;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface AutoResultSetDao extends JpaRepository<AutoResultSet,String>, JpaSpecificationExecutor<AutoResultSet> {
    @Modifying
    @Query(value = "update auto_result_set set status=1 where id=:id",nativeQuery = true)
    int updateStatus(String id);
}
