<?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="cn.cecep.talroad.mapper.SRaDayMonTimeFbjdMapper">

    <select id="selectListByDate" resultType="cn.cecep.talroad.domain.SRaDayMonTimeFbjd">
        SELECT device_id,factory_id,data_time,run_time FROM s_ra_day_mon_time_fbjd WHERE time_type = 'D'
            AND data_time &gt;= #{startTime,jdbcType=VARCHAR}
            AND data_time &lt;= #{endTime,jdbcType=VARCHAR}
    </select>

    <insert id="insertinsertSRaDayMonTimeFbjds">
        INSERT INTO s_ra_day_mon_time_fbjd (data_id,factory_id,device_id,time_type,data_time,run_time)
        VALUES
        <foreach collection="collection" item="item" separator=",">
            (
                #{item.dataId},#{item.factoryId},#{item.deviceId},#{item.timeType},#{item.dataTime},#{item.runTime}
            )
        </foreach>
    </insert>
</mapper>
