netty-修改请求框架,并且注册客户端信息落地,之后通过调用netty接口来进行后续操作。
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<result column="stream" property="stream"/>
|
||||
<result column="venue_id" property="venueId"/>
|
||||
<result column="venue_type" property="venueType"/>
|
||||
<result column="status" property="status"></result>
|
||||
<result column="status" property="status"/>
|
||||
<result column="created_id" property="createdId"/>
|
||||
<result column="modified_id" property="modifiedId"/>
|
||||
<result column="created_time" property="createdTime"/>
|
||||
@@ -63,7 +63,7 @@
|
||||
</select>
|
||||
|
||||
<!-- 新增-->
|
||||
<insert id="insert" parameterType="com.sv.entity.Device" useGeneratedKeys="true" keyProperty="id">
|
||||
<insert id="insert" parameterType="com.sv.entity.Device">
|
||||
|
||||
INSERT INTO
|
||||
<include refid="tableName"></include>
|
||||
@@ -81,7 +81,10 @@
|
||||
venue_id,
|
||||
</if>
|
||||
<if test="venueType != null">
|
||||
venue_type
|
||||
venue_type,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
<if test="createdId != null">
|
||||
created_id,
|
||||
@@ -115,6 +118,9 @@
|
||||
<if test="venueType != null">
|
||||
#{venueType},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status},
|
||||
</if>
|
||||
<if test="createdId != null">
|
||||
#{createdId},
|
||||
</if>
|
||||
@@ -220,4 +226,20 @@
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<update id="offline">
|
||||
UPDATE sv_device set status = 0,modified_time = now()
|
||||
WHERE name = #{deviceName} and venue_id=#{venueId}
|
||||
</update>
|
||||
|
||||
<update id="online">
|
||||
UPDATE sv_device set status = 2,modified_time = now()
|
||||
WHERE name = #{deviceName} and venue_id=#{venueId}
|
||||
</update>
|
||||
|
||||
<select id="checkDevice" resultType="java.lang.Integer">
|
||||
SELECT count(1) FROM sv_device
|
||||
WHERE name = #{deviceName} and venue_id=#{venueId} and deleted = 0
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user