<?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.SalesManagementMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.rj.entity.SalesManagement">
        <id column="id" property="id" />
        <result column="sales_name" property="salesName" />
        <result column="login_account" property="loginAccount" />
        <result column="recording_count" property="recordingCount" />
        <result column="avg_recording_duration" property="avgRecordingDuration" />
        <result column="total_recording_hours" property="totalRecordingHours" />
        <result column="project_id" property="projectId" />
        <result column="project_name" property="projectName" />
        <result column="dealership_id" property="dealershipId" />
        <result column="dealership_name" property="dealershipName" />
        <result column="role" property="role" />
        <result column="create_time" property="createTime" />
        <result column="last_recording_time" property="lastRecordingTime" />
        <result column="last_login_time" property="lastLoginTime" />
        <result column="last_login_ip" property="lastLoginIp" />
        <result column="status" property="status" />
        <result column="update_time" property="updateTime" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, sales_name, login_account, recording_count, avg_recording_duration, total_recording_hours, project_id, project_name, dealership_id, dealership_name, role, create_time, last_recording_time, last_login_time, last_login_ip, status, update_time
    </sql>

</mapper>
