From 97b0f6ddf8421aa200af841cef14880b5379111d Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 20 Sep 2022 10:21:35 +0800 Subject: [PATCH] 20220902 --- src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java | 12 ++++++++++++ src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallTeamLeaderServiceImpl.java | 4 ++++ src/main/java/cc/mrbird/febs/mall/vo/ApiLeaderInfoVo.java | 5 +++++ 3 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallTeamLeaderServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallTeamLeaderServiceImpl.java index d70d896..b079a01 100644 --- a/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallTeamLeaderServiceImpl.java +++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallTeamLeaderServiceImpl.java @@ -166,6 +166,10 @@ apiLeaderInfoVo.setTownship(mallTeamLeader.getTownship()); apiLeaderInfoVo.setDetailAddress(mallTeamLeader.getDetailAddress()); apiLeaderInfoVo.setAddressArea(mallTeamLeader.getAddressArea()); + MallElectronicFence mallElectronicFence = mallElectronicFenceMapper.selectByTeamLeaderCode(mallTeamLeader.getUniqueCode()); + String longLatStr = mallElectronicFence.getLonglatiarr(); + List<String> longLatArr = StrUtil.splitTrim(longLatStr, ";"); + apiLeaderInfoVo.setLonglatiarr(longLatArr); return new FebsResponse().success().data(apiLeaderInfoVo); } diff --git a/src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java b/src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java index 4983b1d..284ae50 100644 --- a/src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java +++ b/src/main/java/cc/mrbird/febs/mall/vo/AddressInfoVo.java @@ -29,4 +29,16 @@ @ApiModelProperty(value = "是否默认地址 1-是 2-否") private Integer isDefault; + + /** + * 经度 + */ + @ApiModelProperty(value = "经度") + private String longitude; + + /** + * 纬度 + */ + @ApiModelProperty(value = "纬度") + private String latitude; } diff --git a/src/main/java/cc/mrbird/febs/mall/vo/ApiLeaderInfoVo.java b/src/main/java/cc/mrbird/febs/mall/vo/ApiLeaderInfoVo.java index 7ceb31d..976d541 100644 --- a/src/main/java/cc/mrbird/febs/mall/vo/ApiLeaderInfoVo.java +++ b/src/main/java/cc/mrbird/febs/mall/vo/ApiLeaderInfoVo.java @@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import java.util.List; + @Data @ApiModel(value = "ApiLeaderInfoVo", description = "信息返回类") public class ApiLeaderInfoVo { @@ -36,4 +38,7 @@ //详细地址 @ApiModelProperty(value = "详细地址") private String detailAddress; + //详细地址 + @ApiModelProperty(value = "经纬度坐标") + private List<String> longlatiarr; } -- Gitblit v1.9.1