Site-mapper2.xml 572 Bytes
<?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.example.demo.mapper.db2.SiteMapper2">


    <select id="getArrivalInfo" resultType="com.example.demo.model.ArrivalInfo">
        SELECT device_id,line_id,stop_no,ts,up_down,in_out,create_date,weeks_year,create_timestamp
        FROM ms.bsth_c_arrival_info_${year} where weeks_year ${weeks} and  ts >= ${timeStart} and ts &lt;= ${timeEnd} ORDER BY device_id,line_id,ts
    </select>


</mapper>