saddfaasdvc
This commit is contained in:
@ -6,6 +6,8 @@ import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: XinYi Song
|
||||
* @Date: 2022/2/8 17:12
|
||||
@ -28,4 +30,11 @@ public interface FireDao extends JpaRepository<Fire,Long> {
|
||||
@Modifying(clearAutomatically=true)
|
||||
@Query(value = "update fire set picture_path = ?2 where alarm_code = ?1",nativeQuery = true)
|
||||
void updatePicturePath(String code, String picturePath);
|
||||
|
||||
/**
|
||||
* 根据设备编码获取火情的信息
|
||||
* @param code
|
||||
* @return
|
||||
*/
|
||||
List<Fire> findByDeviceCode(String code);
|
||||
}
|
||||
|
Reference in New Issue
Block a user