Selaa lähdekoodia

后台 查询用户位置信息优化

limingming 1 vuosi sitten
vanhempi
commit
def8e40432

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/platform/UserInfoController.java

@@ -41,7 +41,7 @@ public class UserInfoController extends BaseController {
 
 
     /**
-     * 获取用户d地址详情信息
+     * 获取用户地址详情信息
      */
 //    @PreAuthorize("@ss.hasPermi('system:info:query')")
     @PostMapping(value = "/userAddress")

+ 4 - 3
ruoyi-system/src/main/resources/mapper/system/platform/UserAddressMapper.xml

@@ -7,7 +7,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <resultMap type="UserAddress" id="UserAddressResult">
         <result property="id"    column="id"    />
         <result property="userId"    column="user_id"    />
-        <result property="address"    column="address"    />
+        <result property="longitude"    column="longitude"    />
+        <result property="latitude"    column="latitude"    />
         <result property="delFlag"    column="del_flag"    />
         <result property="createBy"    column="create_by"    />
         <result property="createTime"    column="create_time"    />
@@ -16,11 +17,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectTUserAddressVo">
-        select id, user_id, address, del_flag, create_by, create_time, update_by, update_time from t_user_address
+        select id, user_id, longitude,latitude, del_flag, create_by, create_time, update_by, update_time from t_user_address
     </sql>
 
     <select id="getAddress" resultType="com.ruoyi.system.domain.UserAddress">
-        SELECT address,create_time
+        SELECT user_id,longitude,latitude,create_time
         FROM t_user_address
         WHERE
             del_flag = 0 AND user_id = #{userId}