From 2e64c232ab6b51b2cecf1ee96e1e9b709234f326 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期六, 21 八月 2021 16:35:14 +0800 Subject: [PATCH] 随手拍改版接口开发 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngPopulationHouseDO.java | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngPopulationHouseDO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngPopulationHouseDO.java index f988b2d..e66a612 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngPopulationHouseDO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComMngPopulationHouseDO.java @@ -1,6 +1,8 @@ package com.panzhihua.service_community.model.dos; import com.baomidou.mybatisplus.annotation.*; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import lombok.Data; import java.io.Serializable; @@ -23,7 +25,7 @@ /** * 主键id */ - @TableId(type = IdType.AUTO) + @TableId(type = IdType.INPUT) private Long id; /** @@ -111,10 +113,22 @@ */ private Long villageId; + /** + * 街道id + * @return + */ + private Long streetId; + + /** + * 层次递归字段(省>市>区县>街道>社区>小区>详细地址) + */ + private String path; + @Override public String toString() { return "ComMngPopulationHouseDO{" + "id=" + id + + ", streetId="+streetId+ ", address=" + address + ", code=" + code + ", alley=" + alley + @@ -125,6 +139,7 @@ ", isEmpty=" + isEmpty + ", constructPurpose=" + constructPurpose + ", constructArea=" + constructArea + + ", path="+path+ ", createAt=" + createAt + ", updateAt=" + updateAt + "}"; -- Gitblit v1.7.1