woody 1 жил өмнө
parent
commit
50d4673a5c

+ 1 - 1
framework-location/src/main/java/com/chelvc/framework/location/Address.java

@@ -23,7 +23,7 @@ public class Address implements Serializable {
     /**
      * 地址标识
      */
-    private Long id;
+    private Integer id;
 
     /**
      * 地址名称

+ 1 - 1
framework-location/src/main/java/com/chelvc/framework/location/support/TencentLocationHandler.java

@@ -78,7 +78,7 @@ public class TencentLocationHandler implements LocationHandler {
 
         // 构建地址信息
         Region region = Objects.requireNonNull(Region.of(location.getAdcode()));
-        Address address = Address.builder().id((long) region.getCode()).build();
+        Address address = Address.builder().id(region.getCode()).build();
         address.setName(
                 Stream.of(location.getProvince(), location.getCity(), location.getDistrict())
                         .filter(name -> !StringUtils.isEmpty(name)).collect(Collectors.joining("·"))