|
@@ -0,0 +1,575 @@
|
|
|
+<?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.idea.buildManage.mapper.ParkRoomDoorMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.idea.buildManage.model.ParkRoomDoor">
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="room_id" jdbcType="VARCHAR" property="roomId" />
|
|
|
+ <result column="room_name" jdbcType="VARCHAR" property="roomName" />
|
|
|
+ <result column="floor_id" jdbcType="VARCHAR" property="floorId" />
|
|
|
+ <result column="floor_name" jdbcType="VARCHAR" property="floorName" />
|
|
|
+ <result column="building_id" jdbcType="VARCHAR" property="buildingId" />
|
|
|
+ <result column="building_name" jdbcType="VARCHAR" property="buildingName" />
|
|
|
+ <result column="house_id" jdbcType="VARCHAR" property="houseId" />
|
|
|
+ <result column="house_name" jdbcType="VARCHAR" property="houseName" />
|
|
|
+ <result column="room_state" jdbcType="INTEGER" property="roomState" />
|
|
|
+ <result column="electric_num" jdbcType="INTEGER" property="electricNum" />
|
|
|
+ <result column="lock_mac" jdbcType="VARCHAR" property="lockMac" />
|
|
|
+ <result column="lock_state" jdbcType="INTEGER" property="lockState" />
|
|
|
+ <result column="aes_key" jdbcType="VARCHAR" property="aesKey" />
|
|
|
+ <result column="admin_auth_code" jdbcType="VARCHAR" property="adminAuthCode" />
|
|
|
+ <result column="general_auth_code" jdbcType="VARCHAR" property="generalAuthCode" />
|
|
|
+ <result column="temp_auth_code" jdbcType="VARCHAR" property="tempAuthCode" />
|
|
|
+ <result column="ble_protocol_ver" jdbcType="VARCHAR" property="bleProtocolVer" />
|
|
|
+ <result column="hardware_version" jdbcType="VARCHAR" property="hardwareVersion" />
|
|
|
+ <result column="software_version" jdbcType="VARCHAR" property="softwareVersion" />
|
|
|
+ <result column="imsi" jdbcType="VARCHAR" property="imsi" />
|
|
|
+ <result column="imei" jdbcType="VARCHAR" property="imei" />
|
|
|
+ <result column="iccid" jdbcType="VARCHAR" property="iccid" />
|
|
|
+ <result column="rsrp" jdbcType="VARCHAR" property="rsrp" />
|
|
|
+ <result column="sinr" jdbcType="VARCHAR" property="sinr" />
|
|
|
+ <result column="cat1_software_version" jdbcType="VARCHAR" property="cat1SoftwareVersion" />
|
|
|
+ <result column="cat1_hardware_version" jdbcType="VARCHAR" property="cat1HardwareVersion" />
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id, room_id, room_name, floor_id, floor_name, building_id, building_name, house_id,
|
|
|
+ house_name, room_state, electric_num, lock_mac, lock_state, aes_key, admin_auth_code,
|
|
|
+ general_auth_code, temp_auth_code, ble_protocol_ver, hardware_version, software_version,
|
|
|
+ imsi, imei, iccid, rsrp, sinr, cat1_software_version, cat1_hardware_version, create_time
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.idea.buildManage.model.ParkRoomDoorExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from park_room_door
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from park_room_door
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from park_room_door
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.idea.buildManage.model.ParkRoomDoorExample">
|
|
|
+ delete from park_room_door
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.idea.buildManage.model.ParkRoomDoor">
|
|
|
+ insert into park_room_door (id, room_id, room_name,
|
|
|
+ floor_id, floor_name, building_id,
|
|
|
+ building_name, house_id, house_name,
|
|
|
+ room_state, electric_num, lock_mac,
|
|
|
+ lock_state, aes_key, admin_auth_code,
|
|
|
+ general_auth_code, temp_auth_code, ble_protocol_ver,
|
|
|
+ hardware_version, software_version, imsi,
|
|
|
+ imei, iccid, rsrp,
|
|
|
+ sinr, cat1_software_version, cat1_hardware_version,
|
|
|
+ create_time)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{roomId,jdbcType=VARCHAR}, #{roomName,jdbcType=VARCHAR},
|
|
|
+ #{floorId,jdbcType=VARCHAR}, #{floorName,jdbcType=VARCHAR}, #{buildingId,jdbcType=VARCHAR},
|
|
|
+ #{buildingName,jdbcType=VARCHAR}, #{houseId,jdbcType=VARCHAR}, #{houseName,jdbcType=VARCHAR},
|
|
|
+ #{roomState,jdbcType=INTEGER}, #{electricNum,jdbcType=INTEGER}, #{lockMac,jdbcType=VARCHAR},
|
|
|
+ #{lockState,jdbcType=INTEGER}, #{aesKey,jdbcType=VARCHAR}, #{adminAuthCode,jdbcType=VARCHAR},
|
|
|
+ #{generalAuthCode,jdbcType=VARCHAR}, #{tempAuthCode,jdbcType=VARCHAR}, #{bleProtocolVer,jdbcType=VARCHAR},
|
|
|
+ #{hardwareVersion,jdbcType=VARCHAR}, #{softwareVersion,jdbcType=VARCHAR}, #{imsi,jdbcType=VARCHAR},
|
|
|
+ #{imei,jdbcType=VARCHAR}, #{iccid,jdbcType=VARCHAR}, #{rsrp,jdbcType=VARCHAR},
|
|
|
+ #{sinr,jdbcType=VARCHAR}, #{cat1SoftwareVersion,jdbcType=VARCHAR}, #{cat1HardwareVersion,jdbcType=VARCHAR},
|
|
|
+ #{createTime,jdbcType=TIMESTAMP})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.idea.buildManage.model.ParkRoomDoor">
|
|
|
+ insert into park_room_door
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="roomId != null">
|
|
|
+ room_id,
|
|
|
+ </if>
|
|
|
+ <if test="roomName != null">
|
|
|
+ room_name,
|
|
|
+ </if>
|
|
|
+ <if test="floorId != null">
|
|
|
+ floor_id,
|
|
|
+ </if>
|
|
|
+ <if test="floorName != null">
|
|
|
+ floor_name,
|
|
|
+ </if>
|
|
|
+ <if test="buildingId != null">
|
|
|
+ building_id,
|
|
|
+ </if>
|
|
|
+ <if test="buildingName != null">
|
|
|
+ building_name,
|
|
|
+ </if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ house_id,
|
|
|
+ </if>
|
|
|
+ <if test="houseName != null">
|
|
|
+ house_name,
|
|
|
+ </if>
|
|
|
+ <if test="roomState != null">
|
|
|
+ room_state,
|
|
|
+ </if>
|
|
|
+ <if test="electricNum != null">
|
|
|
+ electric_num,
|
|
|
+ </if>
|
|
|
+ <if test="lockMac != null">
|
|
|
+ lock_mac,
|
|
|
+ </if>
|
|
|
+ <if test="lockState != null">
|
|
|
+ lock_state,
|
|
|
+ </if>
|
|
|
+ <if test="aesKey != null">
|
|
|
+ aes_key,
|
|
|
+ </if>
|
|
|
+ <if test="adminAuthCode != null">
|
|
|
+ admin_auth_code,
|
|
|
+ </if>
|
|
|
+ <if test="generalAuthCode != null">
|
|
|
+ general_auth_code,
|
|
|
+ </if>
|
|
|
+ <if test="tempAuthCode != null">
|
|
|
+ temp_auth_code,
|
|
|
+ </if>
|
|
|
+ <if test="bleProtocolVer != null">
|
|
|
+ ble_protocol_ver,
|
|
|
+ </if>
|
|
|
+ <if test="hardwareVersion != null">
|
|
|
+ hardware_version,
|
|
|
+ </if>
|
|
|
+ <if test="softwareVersion != null">
|
|
|
+ software_version,
|
|
|
+ </if>
|
|
|
+ <if test="imsi != null">
|
|
|
+ imsi,
|
|
|
+ </if>
|
|
|
+ <if test="imei != null">
|
|
|
+ imei,
|
|
|
+ </if>
|
|
|
+ <if test="iccid != null">
|
|
|
+ iccid,
|
|
|
+ </if>
|
|
|
+ <if test="rsrp != null">
|
|
|
+ rsrp,
|
|
|
+ </if>
|
|
|
+ <if test="sinr != null">
|
|
|
+ sinr,
|
|
|
+ </if>
|
|
|
+ <if test="cat1SoftwareVersion != null">
|
|
|
+ cat1_software_version,
|
|
|
+ </if>
|
|
|
+ <if test="cat1HardwareVersion != null">
|
|
|
+ cat1_hardware_version,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="roomId != null">
|
|
|
+ #{roomId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="roomName != null">
|
|
|
+ #{roomName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="floorId != null">
|
|
|
+ #{floorId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="floorName != null">
|
|
|
+ #{floorName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buildingId != null">
|
|
|
+ #{buildingId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buildingName != null">
|
|
|
+ #{buildingName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ #{houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseName != null">
|
|
|
+ #{houseName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="roomState != null">
|
|
|
+ #{roomState,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="electricNum != null">
|
|
|
+ #{electricNum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="lockMac != null">
|
|
|
+ #{lockMac,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lockState != null">
|
|
|
+ #{lockState,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="aesKey != null">
|
|
|
+ #{aesKey,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="adminAuthCode != null">
|
|
|
+ #{adminAuthCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="generalAuthCode != null">
|
|
|
+ #{generalAuthCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tempAuthCode != null">
|
|
|
+ #{tempAuthCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bleProtocolVer != null">
|
|
|
+ #{bleProtocolVer,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="hardwareVersion != null">
|
|
|
+ #{hardwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="softwareVersion != null">
|
|
|
+ #{softwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="imsi != null">
|
|
|
+ #{imsi,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="imei != null">
|
|
|
+ #{imei,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="iccid != null">
|
|
|
+ #{iccid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="rsrp != null">
|
|
|
+ #{rsrp,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sinr != null">
|
|
|
+ #{sinr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cat1SoftwareVersion != null">
|
|
|
+ #{cat1SoftwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cat1HardwareVersion != null">
|
|
|
+ #{cat1HardwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.idea.buildManage.model.ParkRoomDoorExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from park_room_door
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update park_room_door
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.roomId != null">
|
|
|
+ room_id = #{record.roomId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.roomName != null">
|
|
|
+ room_name = #{record.roomName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.floorId != null">
|
|
|
+ floor_id = #{record.floorId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.floorName != null">
|
|
|
+ floor_name = #{record.floorName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.buildingId != null">
|
|
|
+ building_id = #{record.buildingId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.buildingName != null">
|
|
|
+ building_name = #{record.buildingName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.houseId != null">
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.houseName != null">
|
|
|
+ house_name = #{record.houseName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.roomState != null">
|
|
|
+ room_state = #{record.roomState,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.electricNum != null">
|
|
|
+ electric_num = #{record.electricNum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.lockMac != null">
|
|
|
+ lock_mac = #{record.lockMac,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.lockState != null">
|
|
|
+ lock_state = #{record.lockState,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.aesKey != null">
|
|
|
+ aes_key = #{record.aesKey,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.adminAuthCode != null">
|
|
|
+ admin_auth_code = #{record.adminAuthCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.generalAuthCode != null">
|
|
|
+ general_auth_code = #{record.generalAuthCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.tempAuthCode != null">
|
|
|
+ temp_auth_code = #{record.tempAuthCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.bleProtocolVer != null">
|
|
|
+ ble_protocol_ver = #{record.bleProtocolVer,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.hardwareVersion != null">
|
|
|
+ hardware_version = #{record.hardwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.softwareVersion != null">
|
|
|
+ software_version = #{record.softwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.imsi != null">
|
|
|
+ imsi = #{record.imsi,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.imei != null">
|
|
|
+ imei = #{record.imei,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.iccid != null">
|
|
|
+ iccid = #{record.iccid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.rsrp != null">
|
|
|
+ rsrp = #{record.rsrp,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.sinr != null">
|
|
|
+ sinr = #{record.sinr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.cat1SoftwareVersion != null">
|
|
|
+ cat1_software_version = #{record.cat1SoftwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.cat1HardwareVersion != null">
|
|
|
+ cat1_hardware_version = #{record.cat1HardwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update park_room_door
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ room_id = #{record.roomId,jdbcType=VARCHAR},
|
|
|
+ room_name = #{record.roomName,jdbcType=VARCHAR},
|
|
|
+ floor_id = #{record.floorId,jdbcType=VARCHAR},
|
|
|
+ floor_name = #{record.floorName,jdbcType=VARCHAR},
|
|
|
+ building_id = #{record.buildingId,jdbcType=VARCHAR},
|
|
|
+ building_name = #{record.buildingName,jdbcType=VARCHAR},
|
|
|
+ house_id = #{record.houseId,jdbcType=VARCHAR},
|
|
|
+ house_name = #{record.houseName,jdbcType=VARCHAR},
|
|
|
+ room_state = #{record.roomState,jdbcType=INTEGER},
|
|
|
+ electric_num = #{record.electricNum,jdbcType=INTEGER},
|
|
|
+ lock_mac = #{record.lockMac,jdbcType=VARCHAR},
|
|
|
+ lock_state = #{record.lockState,jdbcType=INTEGER},
|
|
|
+ aes_key = #{record.aesKey,jdbcType=VARCHAR},
|
|
|
+ admin_auth_code = #{record.adminAuthCode,jdbcType=VARCHAR},
|
|
|
+ general_auth_code = #{record.generalAuthCode,jdbcType=VARCHAR},
|
|
|
+ temp_auth_code = #{record.tempAuthCode,jdbcType=VARCHAR},
|
|
|
+ ble_protocol_ver = #{record.bleProtocolVer,jdbcType=VARCHAR},
|
|
|
+ hardware_version = #{record.hardwareVersion,jdbcType=VARCHAR},
|
|
|
+ software_version = #{record.softwareVersion,jdbcType=VARCHAR},
|
|
|
+ imsi = #{record.imsi,jdbcType=VARCHAR},
|
|
|
+ imei = #{record.imei,jdbcType=VARCHAR},
|
|
|
+ iccid = #{record.iccid,jdbcType=VARCHAR},
|
|
|
+ rsrp = #{record.rsrp,jdbcType=VARCHAR},
|
|
|
+ sinr = #{record.sinr,jdbcType=VARCHAR},
|
|
|
+ cat1_software_version = #{record.cat1SoftwareVersion,jdbcType=VARCHAR},
|
|
|
+ cat1_hardware_version = #{record.cat1HardwareVersion,jdbcType=VARCHAR},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.idea.buildManage.model.ParkRoomDoor">
|
|
|
+ update park_room_door
|
|
|
+ <set>
|
|
|
+ <if test="roomId != null">
|
|
|
+ room_id = #{roomId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="roomName != null">
|
|
|
+ room_name = #{roomName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="floorId != null">
|
|
|
+ floor_id = #{floorId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="floorName != null">
|
|
|
+ floor_name = #{floorName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buildingId != null">
|
|
|
+ building_id = #{buildingId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buildingName != null">
|
|
|
+ building_name = #{buildingName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseId != null">
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="houseName != null">
|
|
|
+ house_name = #{houseName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="roomState != null">
|
|
|
+ room_state = #{roomState,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="electricNum != null">
|
|
|
+ electric_num = #{electricNum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="lockMac != null">
|
|
|
+ lock_mac = #{lockMac,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="lockState != null">
|
|
|
+ lock_state = #{lockState,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="aesKey != null">
|
|
|
+ aes_key = #{aesKey,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="adminAuthCode != null">
|
|
|
+ admin_auth_code = #{adminAuthCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="generalAuthCode != null">
|
|
|
+ general_auth_code = #{generalAuthCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tempAuthCode != null">
|
|
|
+ temp_auth_code = #{tempAuthCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bleProtocolVer != null">
|
|
|
+ ble_protocol_ver = #{bleProtocolVer,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="hardwareVersion != null">
|
|
|
+ hardware_version = #{hardwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="softwareVersion != null">
|
|
|
+ software_version = #{softwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="imsi != null">
|
|
|
+ imsi = #{imsi,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="imei != null">
|
|
|
+ imei = #{imei,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="iccid != null">
|
|
|
+ iccid = #{iccid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="rsrp != null">
|
|
|
+ rsrp = #{rsrp,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sinr != null">
|
|
|
+ sinr = #{sinr,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cat1SoftwareVersion != null">
|
|
|
+ cat1_software_version = #{cat1SoftwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cat1HardwareVersion != null">
|
|
|
+ cat1_hardware_version = #{cat1HardwareVersion,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.idea.buildManage.model.ParkRoomDoor">
|
|
|
+ update park_room_door
|
|
|
+ set room_id = #{roomId,jdbcType=VARCHAR},
|
|
|
+ room_name = #{roomName,jdbcType=VARCHAR},
|
|
|
+ floor_id = #{floorId,jdbcType=VARCHAR},
|
|
|
+ floor_name = #{floorName,jdbcType=VARCHAR},
|
|
|
+ building_id = #{buildingId,jdbcType=VARCHAR},
|
|
|
+ building_name = #{buildingName,jdbcType=VARCHAR},
|
|
|
+ house_id = #{houseId,jdbcType=VARCHAR},
|
|
|
+ house_name = #{houseName,jdbcType=VARCHAR},
|
|
|
+ room_state = #{roomState,jdbcType=INTEGER},
|
|
|
+ electric_num = #{electricNum,jdbcType=INTEGER},
|
|
|
+ lock_mac = #{lockMac,jdbcType=VARCHAR},
|
|
|
+ lock_state = #{lockState,jdbcType=INTEGER},
|
|
|
+ aes_key = #{aesKey,jdbcType=VARCHAR},
|
|
|
+ admin_auth_code = #{adminAuthCode,jdbcType=VARCHAR},
|
|
|
+ general_auth_code = #{generalAuthCode,jdbcType=VARCHAR},
|
|
|
+ temp_auth_code = #{tempAuthCode,jdbcType=VARCHAR},
|
|
|
+ ble_protocol_ver = #{bleProtocolVer,jdbcType=VARCHAR},
|
|
|
+ hardware_version = #{hardwareVersion,jdbcType=VARCHAR},
|
|
|
+ software_version = #{softwareVersion,jdbcType=VARCHAR},
|
|
|
+ imsi = #{imsi,jdbcType=VARCHAR},
|
|
|
+ imei = #{imei,jdbcType=VARCHAR},
|
|
|
+ iccid = #{iccid,jdbcType=VARCHAR},
|
|
|
+ rsrp = #{rsrp,jdbcType=VARCHAR},
|
|
|
+ sinr = #{sinr,jdbcType=VARCHAR},
|
|
|
+ cat1_software_version = #{cat1SoftwareVersion,jdbcType=VARCHAR},
|
|
|
+ cat1_hardware_version = #{cat1HardwareVersion,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|