diff --git a/src/main/java/com/xkrs/dao/FirePointDao.java b/src/main/java/com/xkrs/dao/FirePointDao.java index 3e5e650..ce94d45 100644 --- a/src/main/java/com/xkrs/dao/FirePointDao.java +++ b/src/main/java/com/xkrs/dao/FirePointDao.java @@ -124,6 +124,7 @@ public interface FirePointDao extends JpaRepository, JpaS * 查询街道编码异常的火点 */ // @Query(value = "SELECT * FROM fire_point WHERE length(street_code) != 9", nativeQuery = true) +// update fire_point set street_name = (SELECT street_name from street WHERE fire_point.street_code = street.street_code) WHERE fire_point.street_name ISNULL @Query(value = "SELECT * FROM fire_point WHERE street_code ISNULL", nativeQuery = true) List selectAbnormalStreetCode();