zhijiezhao před 3 týdny
rodič
revize
ac82d9d359

+ 3 - 0
src/main/java/com/caimei/model/vo/WxClubListVo.java

@@ -33,4 +33,7 @@ public class WxClubListVo {
 
     @ApiModelProperty("距离")
     private BigDecimal distance;
+
+    @ApiModelProperty("经纬度")
+    private String lngAndLat;
 }

+ 2 - 1
src/main/resources/mapper/ClubMapper.xml

@@ -131,7 +131,8 @@
     </select>
     <select id="getWxClubList" resultType="com.caimei.model.vo.WxClubListVo">
         select id as authId, authParty as authParty,concat(ifnull(p.name,''),ifnull(c.name,''),ifnull(t.name,'')) as area,a.address,a.mobile,a.logo,
-        ifnull(round(st_distance(point(a.lng,a.lat),point(#{lng},#{lat}))*111195/1000,2),99999) as distance
+        ifnull(round(st_distance(point(a.lng,a.lat),point(#{lng},#{lat}))*111195/1000,2),99999) as distance,
+        concat(a.lng,',',a.lat) as lngAndLat,
         from cm_brand_auth a
         left join cm_brand_auth_user au on a.authUserId = au.authUserId
         left join province p on a.provinceId = p.provinceID