|
@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="channelNum" column="channel_num" />
|
|
<result property="channelNum" column="channel_num" />
|
|
<result property="port" column="port" />
|
|
<result property="port" column="port" />
|
|
<result property="videoAddress" column="video_address" />
|
|
<result property="videoAddress" column="video_address" />
|
|
|
|
+ <result property="photoAddress" column="photo_address" />
|
|
<result property="account" column="account" />
|
|
<result property="account" column="account" />
|
|
<result property="password" column="password" />
|
|
<result property="password" column="password" />
|
|
<result property="protocolType" column="protocol_type" />
|
|
<result property="protocolType" column="protocol_type" />
|
|
@@ -25,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectChannelNumberVo">
|
|
<sql id="selectChannelNumberVo">
|
|
- select channel_id, channel_num,equipment_id, equipment_num, equipment_name, video_address,port, account,password,protocol_type, channel_details, del_flag, create_by, create_time, update_by, update_time, remark from channel_number
|
|
|
|
|
|
+ select channel_id, channel_num,equipment_id, equipment_num, equipment_name, video_address,photo_address,port, account,password,protocol_type, channel_details, del_flag, create_by, create_time, update_by, update_time, remark from channel_number
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectChannelNumberList" parameterType="ChannelNumber" resultMap="ChannelNumberResult">
|
|
<select id="selectChannelNumberList" parameterType="ChannelNumber" resultMap="ChannelNumberResult">
|
|
@@ -61,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="equipmentName != null">equipment_name,</if>
|
|
<if test="equipmentName != null">equipment_name,</if>
|
|
<if test="channelNum != null">channel_num,</if>
|
|
<if test="channelNum != null">channel_num,</if>
|
|
<if test="videoAddress != null">video_address,</if>
|
|
<if test="videoAddress != null">video_address,</if>
|
|
|
|
+ <if test="photoAddress != null">photo_address,</if>
|
|
<if test="account != null">account,</if>
|
|
<if test="account != null">account,</if>
|
|
<if test="port != null">port,</if>
|
|
<if test="port != null">port,</if>
|
|
<if test="password != null">password,</if>
|
|
<if test="password != null">password,</if>
|
|
@@ -79,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="equipmentName != null">#{equipmentName},</if>
|
|
<if test="equipmentName != null">#{equipmentName},</if>
|
|
<if test="channelNum != null">#{channelNum},</if>
|
|
<if test="channelNum != null">#{channelNum},</if>
|
|
<if test="videoAddress != null">#{videoAddress},</if>
|
|
<if test="videoAddress != null">#{videoAddress},</if>
|
|
|
|
+ <if test="photoAddress != null">#{photoAddress},</if>
|
|
<if test="account != null">#{account},</if>
|
|
<if test="account != null">#{account},</if>
|
|
<if test="port != null">#{port},</if>
|
|
<if test="port != null">#{port},</if>
|
|
<if test="password != null">#{password},</if>
|
|
<if test="password != null">#{password},</if>
|
|
@@ -101,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="equipmentName != null">equipment_name = #{equipmentName},</if>
|
|
<if test="equipmentName != null">equipment_name = #{equipmentName},</if>
|
|
<if test="channelNum != null">channel_num = #{channelNum},</if>
|
|
<if test="channelNum != null">channel_num = #{channelNum},</if>
|
|
<if test="videoAddress != null">video_address = #{videoAddress},</if>
|
|
<if test="videoAddress != null">video_address = #{videoAddress},</if>
|
|
|
|
+ <if test="photoAddress != null">photo_address = #{photoAddress},</if>
|
|
<if test="account != null">account = #{account},</if>
|
|
<if test="account != null">account = #{account},</if>
|
|
<if test="port != null">port = #{port},</if>
|
|
<if test="port != null">port = #{port},</if>
|
|
<if test="password != null">password = #{password},</if>
|
|
<if test="password != null">password = #{password},</if>
|
|
@@ -115,6 +119,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
where channel_id = #{channelId}
|
|
where channel_id = #{channelId}
|
|
</update>
|
|
</update>
|
|
|
|
+ <update id="updateChannelNumberByChannelId" parameterType="channelNumberVo">
|
|
|
|
+ update channel_number
|
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
|
+ <if test="photoAddress != null">photo_address = #{photoAddress},</if>
|
|
|
|
+ </trim>
|
|
|
|
+ where channel_id = #{channelId}
|
|
|
|
+ </update>
|
|
|
|
|
|
<delete id="deleteChannelNumberByChannelId" parameterType="Long">
|
|
<delete id="deleteChannelNumberByChannelId" parameterType="Long">
|
|
delete from channel_number where channel_id = #{channelId}
|
|
delete from channel_number where channel_id = #{channelId}
|