ChannelRiskDataMapper.xml
4.29 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?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.stdinterface.modules.mapper.ChannelRiskDataMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.stdinterface.modules.entity.ChannelRiskData">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="workorder_no" jdbcType="VARCHAR" property="workorderNo"/>
<result column="owner_name" jdbcType="VARCHAR" property="ownerName"/>
<result column="vin" jdbcType="VARCHAR" property="vin"/>
<result column="sn" jdbcType="VARCHAR" property="sn"/>
<result column="active_date" jdbcType="TIMESTAMP" property="activeDate"/>
<result column="dev_type" jdbcType="INTEGER" property="devType"/>
<result column="gps_time" jdbcType="TIMESTAMP" property="gpsTime"/>
<result column="lng" jdbcType="DOUBLE" property="lng"/>
<result column="lat" jdbcType="DOUBLE" property="lat"/>
<result column="prov" jdbcType="VARCHAR" property="prov"/>
<result column="city" jdbcType="VARCHAR" property="city"/>
<result column="zone" jdbcType="VARCHAR" property="zone"/>
<result column="address" jdbcType="VARCHAR" property="address"/>
<result column="shop_name" jdbcType="VARCHAR" property="shopName"/>
<result column="labels" jdbcType="VARCHAR" property="labels"/>
<result column="type" jdbcType="TINYINT" property="type"/>
<result column="radius" jdbcType="INTEGER" property="radius"/>
<result column="district" jdbcType="VARCHAR" property="district"/>
<result column="street" jdbcType="VARCHAR" property="street"/>
<result column="street_number" jdbcType="VARCHAR" property="streetNumber"/>
<result column="center_lat" jdbcType="DOUBLE" property="centerLat"/>
<result column="center_lng" jdbcType="DOUBLE" property="centerLng"/>
</resultMap>
<resultMap id="ChannelRiskMap" type="cn.com.glsx.stdinterface.dto.ChannelRiskDto">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="workorder_no" jdbcType="VARCHAR" property="workorderNo"/>
<result column="owner_name" jdbcType="VARCHAR" property="ownerName"/>
<result column="vin" jdbcType="VARCHAR" property="vin"/>
<result column="sn" jdbcType="VARCHAR" property="sn"/>
<result column="active_date" jdbcType="TIMESTAMP" property="activeDate"/>
<result column="dev_type" jdbcType="INTEGER" property="devType"/>
<result column="gps_time" jdbcType="TIMESTAMP" property="gpsTime"/>
<result column="lng" jdbcType="DOUBLE" property="lng"/>
<result column="lat" jdbcType="DOUBLE" property="lat"/>
<result column="prov" jdbcType="VARCHAR" property="prov"/>
<result column="city" jdbcType="VARCHAR" property="city"/>
<result column="zone" jdbcType="VARCHAR" property="zone"/>
<result column="address" jdbcType="VARCHAR" property="address"/>
<result column="shop_name" jdbcType="VARCHAR" property="shopName"/>
<result column="labels" jdbcType="VARCHAR" property="labels"/>
<result column="type" jdbcType="TINYINT" property="type"/>
<result column="radius" jdbcType="INTEGER" property="radius"/>
<result column="district" jdbcType="VARCHAR" property="district"/>
<result column="street" jdbcType="VARCHAR" property="street"/>
<result column="street_number" jdbcType="VARCHAR" property="streetNumber"/>
<result column="center_lat" jdbcType="DOUBLE" property="centerLat"/>
<result column="center_lng" jdbcType="DOUBLE" property="centerLng"/>
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
-->
id, workorder_no, owner_name, vin, sn, active_date, dev_type, gps_time, lng, lat,
prov, city, `zone`, address, shop_name, labels, `type`, radius, district, street,
street_number, center_lat, center_lng
</sql>
<select id="selectByWorkStandSn" resultMap="ChannelRiskMap">
SELECT * FROM t_channel_risk_data WHERE workorder_no=#{workorderNo} AND vin=#{vin} AND sn=#{sn}
</select>
</mapper>