user-address-mapper.xml
435 Bytes
<?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">
<!-- 用户地址管理 @author kongmingke -->
<mapper namespace="com.cjs.cms.dao.user.UserAddressDao">
<select id="getDefaultId" parameterType = "map" resultType = "UserAddressInfo">
select * from user_address where is_default = 1 and user_id = #{userId}
</select>
</mapper>