<?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.modules.activities.mapper.ActivitiesMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="activitiesResultMap" type="org.springblade.modules.activities.entity.Activities">
        <result column="id" property="id"/>
        <result column="is_delete" property="isDelete"/>
        <result column="create_user_id" property="createUserId"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user_id" property="updateUserId"/>
        <result column="update_time" property="updateTime"/>
        <result column="activity_image" property="activityImage"/>
        <result column="activity_name" property="activityName"/>
        <result column="activity_type" property="activityType"/>
        <result column="sort" property="sort"/>
        <result column="activity_date" property="activityDate"/>
        <result column="start_time" property="startTime"/>
        <result column="end_time" property="endTime"/>
    </resultMap>


    <select id="selectActivitiesPage" resultMap="activitiesResultMap">
        select * from biz_activities where is_deleted = 0
    </select>

</mapper>
