diff options
| author | liukai <[email protected]> | 2024-10-24 09:19:16 +0800 |
|---|---|---|
| committer | liukai <[email protected]> | 2024-10-24 09:19:16 +0800 |
| commit | e8a8f0907347bb8325a1590093c0cb8a322b9783 (patch) | |
| tree | 0e0eff8370f6d50ff81796f3aa1a2300e572770e | |
| parent | a79ca58f861dbf275e2a47b5034357cadaa1f4d1 (diff) | |
修改ddos相关代码
| -rw-r--r-- | src/main/resources/mappers/CommandMapper.xml | 9 | ||||
| -rw-r--r-- | src/main/resources/mappers/TaskMapper.xml | 6 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/main/resources/mappers/CommandMapper.xml b/src/main/resources/mappers/CommandMapper.xml index 00f65f3..b065915 100644 --- a/src/main/resources/mappers/CommandMapper.xml +++ b/src/main/resources/mappers/CommandMapper.xml @@ -34,7 +34,7 @@ INVALID_TIME, IS_VALID, IS_JUDGED, CREATE_TIME, LAST_UPDATE, IS_DELETED, TASKTYPE, RULE_ID, display_id,RULE_NAME, - sip_int, dip_int) + sip_int, dip_int,,COMMAND_GROUP) values (#{info.UUID}, #{info.taskId}, #{info.taskAct}, #{info.taskName}, #{info.eventType}, #{info.taskCreateDepart}, #{info.distributePoint}, #{info.frequency}, DEFAULT, @@ -47,7 +47,7 @@ #{info.startTime}, #{info.endTime}, #{info.isValid}, #{info.isJudged}, NOW(), NOW(), FALSE, #{info.taskType}, #{info.ruleId}, #{info.displayId}, - #{info.ruleName}, #{info.sipInt}, #{info.dipInt} + #{info.ruleName}, #{info.sipInt}, #{info.dipInt} ,#{info.commandGroup} ) </insert> @@ -102,7 +102,7 @@ IS_JUDGED, CREATE_TIME, LAST_UPDATE, IS_DELETED, TASKTYPE, RULE_ID, display_id,RULE_NAME, - sip_int, dip_int) + sip_int, dip_int,COMMAND_GROUP) values <foreach collection="command_infos" item="info" separator=","> (#{info.UUID}, #{info.taskId}, #{info.taskAct}, #{info.taskName}, #{info.eventType}, #{info.taskCreateDepart}, #{info.distributePoint}, @@ -117,7 +117,7 @@ #{info.startTime}, #{info.endTime}, #{info.isValid}, #{info.isJudged}, NOW(), NOW(), FALSE, #{info.taskType}, #{info.ruleId}, #{info.displayId}, - #{info.ruleName}, #{info.sipInt}, #{info.dipInt} + #{info.ruleName}, #{info.sipInt}, #{info.dipInt},#{info.commandGroup} ) </foreach> </insert> @@ -312,7 +312,6 @@ first_effect_time, last_rcp_query_time, last_traffic_query_time, - sip_int, dip_int from t_command diff --git a/src/main/resources/mappers/TaskMapper.xml b/src/main/resources/mappers/TaskMapper.xml index 4251866..e5ec534 100644 --- a/src/main/resources/mappers/TaskMapper.xml +++ b/src/main/resources/mappers/TaskMapper.xml @@ -800,4 +800,10 @@ FROM t_task WHERE task_id = #{task_id} </select> + + <select id="queryDdosTask" resultMap="taskMap"> + SELECT * + FROM t_task + WHERE task_source = 'ddos' + </select> </mapper>
\ No newline at end of file |
