|
@@ -8,31 +8,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="bInfoId" column="B_INFO_ID" />
|
|
<result property="bInfoId" column="B_INFO_ID" />
|
|
|
<result property="deviceId" column="DEVICE_ID" />
|
|
<result property="deviceId" column="DEVICE_ID" />
|
|
|
<result property="venueId" column="VENUE_ID" />
|
|
<result property="venueId" column="VENUE_ID" />
|
|
|
- <result property="MAC" column="MAC" />
|
|
|
|
|
- <result property="NAME" column="NAME" />
|
|
|
|
|
|
|
+ <result property="areaId" column="AREA_ID" />
|
|
|
|
|
+ <result property="mac" column="MAC" />
|
|
|
|
|
+ <result property="name" column="NAME" />
|
|
|
<result property="fileName" column="FILE_NAME" />
|
|
<result property="fileName" column="FILE_NAME" />
|
|
|
<result property="filePath" column="FILE_PATH" />
|
|
<result property="filePath" column="FILE_PATH" />
|
|
|
<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" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectBluetoothInfoVo">
|
|
<sql id="selectBluetoothInfoVo">
|
|
|
- select B_INFO_ID, DEVICE_ID, VENUE_ID, MAC, NAME, FILE_NAME, FILE_PATH, IS_ILLEGAL, KEY_TYPE, TIME from bluetooth_info
|
|
|
|
|
|
|
+ select B_INFO_ID, DEVICE_ID, VENUE_ID, AREA_ID, MAC, NAME, FILE_NAME, FILE_PATH, IS_ILLEGAL, KEY_TYPE, TIME from bluetooth_info
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectBluetoothInfoList" parameterType="BluetoothInfo" resultMap="BluetoothInfoResult">
|
|
<select id="selectBluetoothInfoList" parameterType="BluetoothInfo" resultMap="BluetoothInfoResult">
|
|
|
<include refid="selectBluetoothInfoVo"/>
|
|
<include refid="selectBluetoothInfoVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="deviceId != null "> and DEVICE_ID = #{deviceId}</if>
|
|
|
|
|
|
|
+ <if test="deviceId != null and deviceId != ''"> and DEVICE_ID = #{deviceId}</if>
|
|
|
<if test="venueId != null "> and VENUE_ID = #{venueId}</if>
|
|
<if test="venueId != null "> and VENUE_ID = #{venueId}</if>
|
|
|
- <if test="MAC != null and MAC != ''"> and MAC like concat('%', #{MAC}, '%')</if>
|
|
|
|
|
- <if test="NAME != null and NAME != ''"> and NAME like concat('%', #{NAME}, '%')</if>
|
|
|
|
|
|
|
+ <if test="areaId != null "> and AREA_ID = #{areaId}</if>
|
|
|
|
|
+ <if test="mac != null and mac != ''"> and MAC like concat('%', #{mac}, '%')</if>
|
|
|
|
|
+ <if test="name != null and name != ''"> and NAME like concat('%', #{name}, '%')</if>
|
|
|
<if test="fileName != null and fileName != ''"> and FILE_NAME like concat('%', #{fileName}, '%')</if>
|
|
<if test="fileName != null and fileName != ''"> and FILE_NAME like concat('%', #{fileName}, '%')</if>
|
|
|
<if test="filePath != null and filePath != ''"> and FILE_PATH = #{filePath}</if>
|
|
<if test="filePath != null and filePath != ''"> and FILE_PATH = #{filePath}</if>
|
|
|
<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 like concat('%', #{keyType}, '%')</if>
|
|
<if test="keyType != null and keyType != ''"> and KEY_TYPE like concat('%', #{keyType}, '%')</if>
|
|
|
- <if test="TIME != null "> and TIME = #{TIME}</if>
|
|
|
|
|
|
|
+ <if test="time != null "> and TIME = #{time}</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -46,24 +48,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="deviceId != null">DEVICE_ID,</if>
|
|
<if test="deviceId != null">DEVICE_ID,</if>
|
|
|
<if test="venueId != null">VENUE_ID,</if>
|
|
<if test="venueId != null">VENUE_ID,</if>
|
|
|
- <if test="MAC != null and MAC != ''">MAC,</if>
|
|
|
|
|
- <if test="NAME != null">NAME,</if>
|
|
|
|
|
|
|
+ <if test="areaId != null">AREA_ID,</if>
|
|
|
|
|
+ <if test="mac != null and mac != ''">MAC,</if>
|
|
|
|
|
+ <if test="name != null">NAME,</if>
|
|
|
<if test="fileName != null">FILE_NAME,</if>
|
|
<if test="fileName != null">FILE_NAME,</if>
|
|
|
<if test="filePath != null">FILE_PATH,</if>
|
|
<if test="filePath != null">FILE_PATH,</if>
|
|
|
<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>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="deviceId != null">#{deviceId},</if>
|
|
<if test="deviceId != null">#{deviceId},</if>
|
|
|
<if test="venueId != null">#{venueId},</if>
|
|
<if test="venueId != null">#{venueId},</if>
|
|
|
- <if test="MAC != null and MAC != ''">#{MAC},</if>
|
|
|
|
|
- <if test="NAME != null">#{NAME},</if>
|
|
|
|
|
|
|
+ <if test="areaId != null">#{areaId},</if>
|
|
|
|
|
+ <if test="mac != null and mac != ''">#{mac},</if>
|
|
|
|
|
+ <if test="name != null">#{name},</if>
|
|
|
<if test="fileName != null">#{fileName},</if>
|
|
<if test="fileName != null">#{fileName},</if>
|
|
|
<if test="filePath != null">#{filePath},</if>
|
|
<if test="filePath != null">#{filePath},</if>
|
|
|
<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>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -72,13 +76,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="deviceId != null">DEVICE_ID = #{deviceId},</if>
|
|
<if test="deviceId != null">DEVICE_ID = #{deviceId},</if>
|
|
|
<if test="venueId != null">VENUE_ID = #{venueId},</if>
|
|
<if test="venueId != null">VENUE_ID = #{venueId},</if>
|
|
|
- <if test="MAC != null and MAC != ''">MAC = #{MAC},</if>
|
|
|
|
|
- <if test="NAME != null">NAME = #{NAME},</if>
|
|
|
|
|
|
|
+ <if test="areaId != null">AREA_ID = #{areaId},</if>
|
|
|
|
|
+ <if test="mac != null and mac != ''">MAC = #{mac},</if>
|
|
|
|
|
+ <if test="name != null">NAME = #{name},</if>
|
|
|
<if test="fileName != null">FILE_NAME = #{fileName},</if>
|
|
<if test="fileName != null">FILE_NAME = #{fileName},</if>
|
|
|
<if test="filePath != null">FILE_PATH = #{filePath},</if>
|
|
<if test="filePath != null">FILE_PATH = #{filePath},</if>
|
|
|
<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>
|
|
|
</trim>
|
|
</trim>
|
|
|
where B_INFO_ID = #{bInfoId}
|
|
where B_INFO_ID = #{bInfoId}
|
|
|
</update>
|
|
</update>
|