<?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.zksy.base.radar.mapper.RadarDataMapper">

    <resultMap id="BaseResultMap" type="com.zksy.base.radar.domain.RadarData">
            <id property="id" column="id" jdbcType="VARCHAR"/>
            <result property="systemIdentifier" column="system_identifier" jdbcType="VARCHAR"/>
            <result property="frameLength" column="frame_length" jdbcType="VARCHAR"/>
            <result property="packetSequence" column="packet_sequence" jdbcType="VARCHAR"/>
            <result property="dataType" column="data_type" jdbcType="VARCHAR"/>
            <result property="sourceAddr" column="source_addr" jdbcType="VARCHAR"/>
            <result property="destAddrLength" column="dest_addr_length" jdbcType="VARCHAR"/>
            <result property="destAddr" column="dest_addr" jdbcType="VARCHAR"/>
            <result property="deviceCode" column="device_code" jdbcType="VARCHAR"/>
            <result property="functionCode" column="function_code" jdbcType="VARCHAR"/>
            <result property="reserve1" column="reserve1" jdbcType="VARCHAR"/>
            <result property="recordCount" column="record_count" jdbcType="VARCHAR"/>
            <result property="recordFormat" column="record_format" jdbcType="VARCHAR"/>
            <result property="powerVoltage" column="power_voltage" jdbcType="VARCHAR"/>
            <result property="fieldStatus" column="field_status" jdbcType="VARCHAR"/>
            <result property="isLastPacket" column="is_last_packet" jdbcType="TINYINT"/>
            <result property="protocolVersion" column="protocol_version" jdbcType="VARCHAR"/>
            <result property="paramVersion" column="param_version" jdbcType="VARCHAR"/>
            <result property="signalQuality" column="signal_quality" jdbcType="VARCHAR"/>
            <result property="reserve3" column="reserve3" jdbcType="VARCHAR"/>
            <result property="timestampSince" column="timestamp_since" jdbcType="TIMESTAMP"/>
            <result property="meter1NetTotal" column="meter1_net_total" jdbcType="VARCHAR"/>
            <result property="meter1InstantFlow" column="meter1_instant_flow" jdbcType="VARCHAR"/>
            <result property="flowSpeed" column="flow_speed" jdbcType="VARCHAR"/>
            <result property="waterLevel" column="water_level" jdbcType="VARCHAR"/>
            <result property="switchValue" column="switch_value" jdbcType="VARCHAR"/>
            <result property="historyRecords" column="history_records" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,system_identifier,frame_length,
        packet_sequence,data_type,source_addr,
        dest_addr_length,dest_addr,device_code,
        function_code,reserve1,record_count,
        record_format,power_voltage,field_status,
        is_last_packet,protocol_version,param_version,
        signal_quality,reserve3,timestamp_since,
        meter1_net_total,meter1_instant_flow,flow_speed,
        water_level,switch_value,history_records,
        create_time
    </sql>
</mapper>
