更新火点的街道编号数据

This commit is contained in:
liuchengqian 2022-05-09 17:18:47 +08:00
parent 75c4e9b381
commit aa3e6b86e9

View File

@ -124,6 +124,7 @@ public interface FirePointDao extends JpaRepository<FirePointEntity, Long>, JpaS
* 查询街道编码异常的火点 * 查询街道编码异常的火点
*/ */
// @Query(value = "SELECT * FROM fire_point WHERE length(street_code) != 9", nativeQuery = true) // @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) @Query(value = "SELECT * FROM fire_point WHERE street_code ISNULL", nativeQuery = true)
List<FirePointEntity> selectAbnormalStreetCode(); List<FirePointEntity> selectAbnormalStreetCode();