<?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.kym.mapper.DeviceConfigMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.kym.entity.DeviceConfig">
        <result column="name" property="name" />
        <result column="remark" property="remark" />
        <result column="user_message_1" property="userMessage1" />
        <result column="user_message_2" property="userMessage2" />
        <result column="water_price" property="waterPrice" />
        <result column="foam_price" property="foamPrice" />
        <result column="cleaner_price" property="cleanerPrice" />
        <result column="tap_price" property="tapPrice" />
        <result column="user_ext_price" property="userExtPrice" />
        <result column="prepay_money" property="prepayMoney" />
        <result column="work_light_delay" property="workLightDelay" />
        <result column="tap_on_delay" property="tapOnDelay" />
        <result column="idle_timeout" property="idleTimeout" />
        <result column="notice_threshold_idle" property="noticeThresholdIdle" />
        <result column="operation_timeout" property="operationTimeout" />
        <result column="notice_threshold_operation" property="noticeThresholdOperation" />
        <result column="motor_on_delay" property="motorOnDelay" />
        <result column="motor_off_delay" property="motorOffDelay" />
        <result column="motor_on_interval" property="motorOnInterval" />
        <result column="motor_flow_on" property="motorFlowOn" />
        <result column="motor_flow_off" property="motorFlowOff" />
        <result column="work_mode" property="workMode" />
        <result column="work_time_period_1" property="workTimePeriod1" />
        <result column="work_time_period_2" property="workTimePeriod2" />
        <result column="light_mode" property="lightMode" />
        <result column="light_time_period_1" property="lightTimePeriod1" />
        <result column="light_time_period_2" property="lightTimePeriod2" />
        <result column="tts_open_by_button" property="ttsOpenByButton" />
        <result column="tts_open_by_network" property="ttsOpenByNetwork" />
        <result column="tts_close_by_button" property="ttsCloseByButton" />
        <result column="tts_close_by_network" property="ttsCloseByNetwork" />
        <result column="tts_close_by_idle_timeout" property="ttsCloseByIdleTimeout" />
        <result column="tts_close_by_operation_timeout" property="ttsCloseByOperationTimeout" />
        <result column="tts_close_by_no_balance" property="ttsCloseByNoBalance" />
        <result column="tts_close_by_sys_error" property="ttsCloseBySysError" />
        <result column="tts_water_on" property="ttsWaterOn" />
        <result column="tts_water_off" property="ttsWaterOff" />
        <result column="tts_foam_on" property="ttsFoamOn" />
        <result column="tts_foam_off" property="ttsFoamOff" />
        <result column="tts_cleaner_on" property="ttsCleanerOn" />
        <result column="tts_cleaner_off" property="ttsCleanerOff" />
        <result column="tts_tap_on" property="ttsTapOn" />
        <result column="tts_tap_off" property="ttsTapOff" />
        <result column="tts_user_ext_on" property="ttsUserExtOn" />
        <result column="tts_user_ext_off" property="ttsUserExtOff" />
        <result column="tts_alert_sys_boot" property="ttsAlertSysBoot" />
        <result column="tts_alert_idle_mode" property="ttsAlertIdleMode" />
        <result column="tts_alert_sleep_mode" property="ttsAlertSleepMode" />
        <result column="tts_alert_config_mode" property="ttsAlertConfigMode" />
        <result column="tts_alert_maintenance_mode" property="ttsAlertMaintenanceMode" />
        <result column="tts_alert_no_water" property="ttsAlertNoWater" />
        <result column="tts_alert_no_foam" property="ttsAlertNoFoam" />
        <result column="tts_alert_motor_error" property="ttsAlertMotorError" />
        <result column="tts_alert_idle_remain_time" property="ttsAlertIdleRemainTime" />
        <result column="tts_alert_operation_remain_time" property="ttsAlertOperationRemainTime" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        name,remark,user_message_1, user_message_2, water_price, foam_price, cleaner_price, tap_price, user_ext_price, prepay_money, work_light_delay, tap_on_delay, idle_timeout, notice_threshold_idle, operation_timeout, notice_threshold_operation, motor_on_delay, motor_off_delay, motor_on_interval, motor_flow_on, motor_flow_off, work_mode, work_time_period_1, work_time_period_2, light_mode, light_time_period_1, light_time_period_2, tts_open_by_button, tts_open_by_network, tts_close_by_button, tts_close_by_network, tts_close_by_idle_timeout, tts_close_by_operation_timeout, tts_close_by_no_balance, tts_close_by_sys_error, tts_water_on, tts_water_off, tts_foam_on, tts_foam_off, tts_cleaner_on, tts_cleaner_off, tts_tap_on, tts_tap_off, tts_user_ext_on, tts_user_ext_off, tts_alert_sys_boot, tts_alert_idle_mode, tts_alert_sleep_mode, tts_alert_config_mode, tts_alert_maintenance_mode, tts_alert_no_water, tts_alert_no_foam, tts_alert_motor_error, tts_alert_idle_remain_time, tts_alert_operation_remain_time
    </sql>

</mapper>
