<?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="com.qs.mp.admin.mapper.CdKeyGroupMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.qs.mp.admin.domain.CdKeyGroup">
        <id column="group_id" property="groupId" />
        <result column="channel_id" property="channelId" />
        <result column="site_name" property="siteName" />
        <result column="quantity" property="quantity" />
        <result column="cashed_qty" property="cashedQty" />
        <result column="remain_qty" property="remainQty" />
        <result column="status" property="status" />
        <result column="validity_period" property="validityPeriod" />
        <result column="created_time" property="createdTime" />
        <result column="updated_time" property="updatedTime" />
        <result column="activation_time" property="activationTime" />
        <result column="is_deleted" property="isDeleted" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        group_id, channel_id, site_name, quantity, cashed_qty, remain_qty, status, validity_period, created_time, updated_time, activation_time, is_deleted
    </sql>

    <select id="listCdKeyGroupListVO" resultType="com.qs.mp.admin.domain.vo.CdKeyGroupVO">
        select * from mp_cd_key_group
        ${ew.customSqlSegment}
    </select>

</mapper>