You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
798 B
24 lines
798 B
|
2 years ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
|
<mapper namespace="org.springblade.weixin.mapper.WeChatAddressMapper">
|
||
|
|
|
||
|
|
<select id="getPage" resultType="org.springblade.weixin.entity.WeChatAddress">
|
||
|
|
SELECT
|
||
|
|
ad.id,
|
||
|
|
ad.consignee,
|
||
|
|
ad.phone,
|
||
|
|
ad.area,
|
||
|
|
ad.address,
|
||
|
|
ad.is_default,
|
||
|
|
ad.status
|
||
|
|
FROM eh_wx_user AS us
|
||
|
|
LEFT JOIN eh_address AS ad ON us.id = ad.user_id
|
||
|
|
WHERE
|
||
|
|
us.is_deleted = 0 AND ad.is_deleted = 0
|
||
|
|
<if test="weChatUser.openId != null and weChatUser.openId != ''">
|
||
|
|
AND us.open_id = #{weChatUser.openId}
|
||
|
|
</if>
|
||
|
|
ORDER BY ad.create_time DESC
|
||
|
|
</select>
|
||
|
|
</mapper>
|