saddfaasdvc

This commit is contained in:
2022-02-11 09:06:19 +08:00
parent bb41afa86c
commit 9db8142a1a
12 changed files with 898 additions and 13 deletions

View File

@ -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);
}