|
@@ -17,6 +17,8 @@
|
|
<result property="isIllegal" column="IS_ILLEGAL"/>
|
|
<result property="isIllegal" column="IS_ILLEGAL"/>
|
|
<result property="keyType" column="KEY_TYPE"/>
|
|
<result property="keyType" column="KEY_TYPE"/>
|
|
<result property="time" column="TIME"/>
|
|
<result property="time" column="TIME"/>
|
|
|
|
+ <result property="lat" column="LAT"/>
|
|
|
|
+ <result property="lng" column="LNG"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectWifiInfoVo">
|
|
<sql id="selectWifiInfoVo">
|
|
@@ -28,13 +30,16 @@
|
|
SSID,
|
|
SSID,
|
|
AUTH_PAGE,
|
|
AUTH_PAGE,
|
|
IS_ILLEGAL,
|
|
IS_ILLEGAL,
|
|
- KEY_TYPE, TIME
|
|
|
|
|
|
+ KEY_TYPE,
|
|
|
|
+ LAT,
|
|
|
|
+ LNG, TIME
|
|
from wifi_info
|
|
from wifi_info
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectWifiInfoList" parameterType="WifiInfo" resultMap="WifiInfoResult">
|
|
<select id="selectWifiInfoList" parameterType="WifiInfo" resultMap="WifiInfoResult">
|
|
- select * from (select WIFI_INFO_ID, DEVICE_ID, a.VENUE_ID,b.VENUE_NAME, a.AREA_ID,c.area_name, BSSID, SSID, AUTH_PAGE,
|
|
|
|
- IS_ILLEGAL, KEY_TYPE, TIME from wifi_info a left join venue_info b on a.venue_id=b.venue_id left join venue_area
|
|
|
|
|
|
+ select * from (select WIFI_INFO_ID, DEVICE_ID, a.VENUE_ID,b.VENUE_NAME, a.AREA_ID,c.area_name, BSSID, SSID,
|
|
|
|
+ AUTH_PAGE,
|
|
|
|
+ IS_ILLEGAL, KEY_TYPE,LAT,LNG, TIME from wifi_info a left join venue_info b on a.venue_id=b.venue_id left join venue_area
|
|
c on a.AREA_ID=c.area_id ) t
|
|
c on a.AREA_ID=c.area_id ) t
|
|
<where>
|
|
<where>
|
|
<if test="deviceId != null and deviceId != ''">and DEVICE_ID = #{deviceId}</if>
|
|
<if test="deviceId != null and deviceId != ''">and DEVICE_ID = #{deviceId}</if>
|
|
@@ -46,7 +51,9 @@
|
|
<if test="isIllegal != null and isIllegal != ''">and IS_ILLEGAL = #{isIllegal}</if>
|
|
<if test="isIllegal != null and isIllegal != ''">and IS_ILLEGAL = #{isIllegal}</if>
|
|
<if test="keyType != null and keyType != ''">and KEY_TYPE = #{keyType}</if>
|
|
<if test="keyType != null and keyType != ''">and KEY_TYPE = #{keyType}</if>
|
|
<if test="time != null ">and TIME = #{time}</if>
|
|
<if test="time != null ">and TIME = #{time}</if>
|
|
- <if test="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> and TIME between #{params.beginTime} and #{params.endTime}</if>
|
|
|
|
|
|
+ <if test="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''">
|
|
|
|
+ and TIME between #{params.beginTime} and #{params.endTime}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -67,6 +74,8 @@
|
|
<if test="isIllegal != null">IS_ILLEGAL,</if>
|
|
<if test="isIllegal != null">IS_ILLEGAL,</if>
|
|
<if test="keyType != null">KEY_TYPE,</if>
|
|
<if test="keyType != null">KEY_TYPE,</if>
|
|
<if test="time != null">TIME,</if>
|
|
<if test="time != null">TIME,</if>
|
|
|
|
+ <if test="lat != null">LAT,</if>
|
|
|
|
+ <if test="lng != null">LNG,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="deviceId != null">#{deviceId},</if>
|
|
<if test="deviceId != null">#{deviceId},</if>
|
|
@@ -78,6 +87,8 @@
|
|
<if test="isIllegal != null">#{isIllegal},</if>
|
|
<if test="isIllegal != null">#{isIllegal},</if>
|
|
<if test="keyType != null">#{keyType},</if>
|
|
<if test="keyType != null">#{keyType},</if>
|
|
<if test="time != null">#{time},</if>
|
|
<if test="time != null">#{time},</if>
|
|
|
|
+ <if test="lat != null">#{lat},</if>
|
|
|
|
+ <if test="lng != null">#{lng},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -93,6 +104,8 @@
|
|
<if test="isIllegal != null">IS_ILLEGAL = #{isIllegal},</if>
|
|
<if test="isIllegal != null">IS_ILLEGAL = #{isIllegal},</if>
|
|
<if test="keyType != null">KEY_TYPE = #{keyType},</if>
|
|
<if test="keyType != null">KEY_TYPE = #{keyType},</if>
|
|
<if test="time != null">TIME = #{time},</if>
|
|
<if test="time != null">TIME = #{time},</if>
|
|
|
|
+ <if test="lat != null">LAT=#{lat},</if>
|
|
|
|
+ <if test="lng != null">LNG=#{lng},</if>
|
|
</trim>
|
|
</trim>
|
|
where WIFI_INFO_ID = #{wifiInfoId}
|
|
where WIFI_INFO_ID = #{wifiInfoId}
|
|
</update>
|
|
</update>
|