| | |
| | | package cc.mrbird.febs.mall.vo; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | @ApiModelProperty(value = "纬度") |
| | | private BigDecimal latitude; |
| | | |
| | | private String province; |
| | | |
| | | private String city; |
| | | |
| | | private String county; |
| | | |
| | | private String address; |
| | | |
| | | public String getAddress() { |
| | | if (StrUtil.isBlank(city) || StrUtil.isBlank(province) || StrUtil.isBlank(county)) { |
| | | return null; |
| | | } |
| | | |
| | | if (city.equals(province)) { |
| | | return province + county + shopAddress; |
| | | } else { |
| | | return province + city + county + shopAddress; |
| | | } |
| | | } |
| | | |
| | | @ApiModelProperty(value = "距离") |
| | | private BigDecimal distance; |
| | | } |