|
|
@@ -70,7 +70,9 @@ SELECT
|
|
|
`host` AS `host`,
|
|
|
video_channel AS videoChannel,
|
|
|
video_channel_name AS videoChannelName,
|
|
|
- host_name AS hostName
|
|
|
+ host_name AS hostName,
|
|
|
+ area_code,
|
|
|
+ area_name
|
|
|
FROM
|
|
|
core_monitoring_task_registration_monitor
|
|
|
WHERE task_registration_id = #{taskRegistrationId}
|
|
|
@@ -104,82 +106,94 @@ WHERE task_registration_id = #{taskRegistrationId}
|
|
|
AND sd1.id = #{videoChannel}
|
|
|
</select>
|
|
|
|
|
|
- <insert id="insertCoreMonitoringTaskRegistrationMonitor"
|
|
|
- parameterType="com.xunmei.core.access.domain.CoreMonitoringTaskRegistrationMonitor">
|
|
|
- insert into core_monitoring_task_registration_monitor
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">id,
|
|
|
- </if>
|
|
|
- <if test="taskRegistrationId != null">task_registration_id,
|
|
|
- </if>
|
|
|
- <if test="host != null">host,
|
|
|
- </if>
|
|
|
- <if test="videoChannel != null">video_channel,
|
|
|
- </if>
|
|
|
- <if test="createTime != null">create_time,
|
|
|
- </if>
|
|
|
- <if test="createBy != null">create_by,
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">update_time,
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">update_by,
|
|
|
- </if>
|
|
|
- <if test="delFlag != null">del_flag,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">#{id},
|
|
|
- </if>
|
|
|
- <if test="taskRegistrationId != null">#{taskRegistrationId},
|
|
|
- </if>
|
|
|
- <if test="host != null">#{host},
|
|
|
- </if>
|
|
|
- <if test="videoChannel != null">#{videoChannel},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">#{createTime},
|
|
|
- </if>
|
|
|
- <if test="createBy != null">#{createBy},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">#{updateTime},
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">#{updateBy},
|
|
|
- </if>
|
|
|
- <if test="delFlag != null">#{delFlag},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
+ <select id="selectMonitorByAreaCode"
|
|
|
+ resultType="com.xunmei.core.access.vo.CoreMonitoringTaskRegistrationMonitorVO">
|
|
|
+ SELECT b.id AS id,
|
|
|
+ b.area_code,
|
|
|
+ b.area_name
|
|
|
+ FROM core_monitoring_task_registration a
|
|
|
+ LEFT JOIN core_monitoring_task_registration_monitor b ON a.id = b.task_registration_id
|
|
|
+ WHERE a.task_id = #{taskId}
|
|
|
+ AND b.area_code = #{areaCode}
|
|
|
+ </select>
|
|
|
|
|
|
- <update id="updateCoreMonitoringTaskRegistrationMonitor"
|
|
|
- parameterType="com.xunmei.core.access.domain.CoreMonitoringTaskRegistrationMonitor">
|
|
|
- update core_monitoring_task_registration_monitor
|
|
|
- <trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="taskRegistrationId != null">task_registration_id =
|
|
|
- #{taskRegistrationId},
|
|
|
- </if>
|
|
|
- <if test="host != null">host =
|
|
|
- #{host},
|
|
|
- </if>
|
|
|
- <if test="videoChannel != null">video_channel =
|
|
|
- #{videoChannel},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">create_time =
|
|
|
- #{createTime},
|
|
|
- </if>
|
|
|
- <if test="createBy != null">create_by =
|
|
|
- #{createBy},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">update_time =
|
|
|
- #{updateTime},
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">update_by =
|
|
|
- #{updateBy},
|
|
|
- </if>
|
|
|
- <if test="delFlag != null">del_flag =
|
|
|
- #{delFlag},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- where id = #{id}
|
|
|
- </update>
|
|
|
+
|
|
|
+<!-- <insert id="insertCoreMonitoringTaskRegistrationMonitor"-->
|
|
|
+<!-- parameterType="com.xunmei.core.access.domain.CoreMonitoringTaskRegistrationMonitor">-->
|
|
|
+<!-- insert into core_monitoring_task_registration_monitor-->
|
|
|
+<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
|
|
|
+<!-- <if test="id != null">id,-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="taskRegistrationId != null">task_registration_id,-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="host != null">host,-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="videoChannel != null">video_channel,-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="createTime != null">create_time,-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="createBy != null">create_by,-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="updateTime != null">update_time,-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="updateBy != null">update_by,-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="delFlag != null">del_flag,-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- </trim>-->
|
|
|
+<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
|
|
|
+<!-- <if test="id != null">#{id},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="taskRegistrationId != null">#{taskRegistrationId},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="host != null">#{host},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="videoChannel != null">#{videoChannel},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="createTime != null">#{createTime},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="createBy != null">#{createBy},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="updateTime != null">#{updateTime},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="updateBy != null">#{updateBy},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="delFlag != null">#{delFlag},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- </trim>-->
|
|
|
+<!-- </insert>-->
|
|
|
+
|
|
|
+<!-- <update id="updateCoreMonitoringTaskRegistrationMonitor"-->
|
|
|
+<!-- parameterType="com.xunmei.core.access.domain.CoreMonitoringTaskRegistrationMonitor">-->
|
|
|
+<!-- update core_monitoring_task_registration_monitor-->
|
|
|
+<!-- <trim prefix="SET" suffixOverrides=",">-->
|
|
|
+<!-- <if test="taskRegistrationId != null">task_registration_id =-->
|
|
|
+<!-- #{taskRegistrationId},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="host != null">host =-->
|
|
|
+<!-- #{host},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="videoChannel != null">video_channel =-->
|
|
|
+<!-- #{videoChannel},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="createTime != null">create_time =-->
|
|
|
+<!-- #{createTime},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="createBy != null">create_by =-->
|
|
|
+<!-- #{createBy},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="updateTime != null">update_time =-->
|
|
|
+<!-- #{updateTime},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="updateBy != null">update_by =-->
|
|
|
+<!-- #{updateBy},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="delFlag != null">del_flag =-->
|
|
|
+<!-- #{delFlag},-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- </trim>-->
|
|
|
+<!-- where id = #{id}-->
|
|
|
+<!-- </update>-->
|
|
|
|
|
|
<delete id="deleteCoreMonitoringTaskRegistrationMonitorById" parameterType="String">
|
|
|
delete
|