<?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.fastbee.iot.mapper.ModbusJobMapper">

    <resultMap type="com.fastbee.iot.domain.ModbusJob" id="ModbusJobResult">
        <result property="taskId"    column="task_id"    />
        <result property="jobName" column="job_name" />
        <result property="subDeviceId"    column="sub_device_id"    />
        <result property="subSerialNumber"    column="sub_serial_number"    />
        <result property="command"    column="command"    />
        <result property="jobId"    column="job_id"    />
        <result property="status"    column="status"    />
        <result property="createBy"    column="create_by"    />
        <result property="createTime"    column="create_time"    />
        <result property="remark"    column="remark"    />
        <result property="deviceType" column="device_type" />
    </resultMap>

    <sql id="selectModbusJobVo">
        select task_id,job_name, sub_device_id, sub_serial_number, command,device_type, job_id, status, create_by, create_time, remark from iot_modbus_job
    </sql>

</mapper>
