<?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.rj.mapper.DealershipMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.rj.entity.Dealership">
        <id column="id" property="id" />
        <result column="dealership_name" property="dealershipName" />
        <result column="dealership_code" property="dealershipCode" />
        <result column="remaining_hours" property="remainingHours" />
        <result column="sales_count" property="salesCount" />
        <result column="avg_recordings" property="avgRecordings" />
        <result column="avg_recording_duration" property="avgRecordingDuration" />
        <result column="region" property="region" />
        <result column="group_name" property="groupName" />
        <result column="language" property="language" />
        <result column="dealership_type" property="dealershipType" />
        <result column="status" property="status" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, dealership_name, dealership_code, remaining_hours, sales_count, avg_recordings, avg_recording_duration, region, group_name, language, dealership_type, status, create_time, update_time
    </sql>

</mapper>
