|
@@ -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}
|