peng
3 天以前 1fdfb56613adca09a0ddf39289b41f96fa335a01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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="cn.lili.modules.lmk.mapper.MemberCustomerTagMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="cn.lili.modules.lmk.domain.entity.MemberCustomerTag">
        <id property="id" column="id"/>
        <result column="tag_name" property="tagName" />
        <result column="member_id" property="memberId" />
    </resultMap>
 
    <select id="getPage" resultMap="BaseResultMap">
        SELECT
            LMCT.id,
            LMCT.memberId,
            LMCT.tag_name
            FROM lmk_member_customer_tag LMCT
        WHERE LMCT.delete_flag = 0
        AND LMCT.member_id = #{query.memberId}
    </select>
 
</mapper>