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;
import org.springframework.data.repository.query.Param;

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