From aa3e6b86e9c91d15b17c653f1ddca715b407d88c Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Mon, 9 May 2022 17:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=81=AB=E7=82=B9=E7=9A=84?= =?UTF-8?q?=E8=A1=97=E9=81=93=E7=BC=96=E5=8F=B7=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/dao/FirePointDao.java | 1 + 1 file changed, 1 insertion(+) 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();