DeviceLocationMapper.xml
1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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.com.glsx.admin.modules.mapper.DeviceLocationMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.admin.modules.entity.DeviceLocation">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="sn" jdbcType="VARCHAR" property="sn" />
<result column="last_gps_time" jdbcType="TIMESTAMP" property="lastGpsTime" />
<result column="last_bs_time" jdbcType="TIMESTAMP" property="lastBsTime" />
<result column="speed" jdbcType="INTEGER" property="speed" />
<result column="stay_status" jdbcType="TINYINT" property="stayStatus" />
<result column="stay_status_updatetime" jdbcType="TIMESTAMP" property="stayStatusUpdatetime" />
<result column="created_time" jdbcType="TIMESTAMP" property="createdTime" />
<result column="updated_time" jdbcType="TIMESTAMP" property="updatedTime" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, sn, last_gps_time, last_bs_time, speed, stay_status, stay_status_updatetime,
created_time, updated_time
</sql>
<!-- findLocationListBySnList -->
<select id="findLocationListBySnList" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
FROM t_device_location
where sn in
<foreach collection="snList" separator="," open="(" close=")" item="item">
#{item}
</foreach>
</select>
</mapper>