summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPushM <[email protected]>2024-04-17 22:05:32 +0800
committerPushM <[email protected]>2024-04-17 22:05:32 +0800
commitda560584698c2b0860bb259163cd44d8229f48af (patch)
treef6681564c4a8c790c767e6c65a4d7ef6fc0b7c6c /src
parentc6334cee567cd85cb4afeb6ae8e54e720c7fa3e2 (diff)
1、TaskCommandIndo删去了depart,使用taskCreateDepart,修改mapper也同步使用taskCreateDepart
2、新增静态规则批量审核功能,post请求body为id和auditStatus的Map,入库使用sqlSessionWrapper,test已通过 3、动态任务接收alertmessage,查询DynamicTaskInfos生成command时,新增关联t_strategy_template表,select查询新增查询局点dynamic_rule_range、事件类型strategy_template_name字段
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/realtime/protection/server/alertmessage/AlertMessageService.java4
-rw-r--r--src/main/java/com/realtime/protection/server/rule/staticrule/StaticRuleController.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/realtime/protection/server/alertmessage/AlertMessageService.java b/src/main/java/com/realtime/protection/server/alertmessage/AlertMessageService.java
index bf6455b..cb6cbcf 100644
--- a/src/main/java/com/realtime/protection/server/alertmessage/AlertMessageService.java
+++ b/src/main/java/com/realtime/protection/server/alertmessage/AlertMessageService.java
@@ -89,7 +89,7 @@ public class AlertMessageService {
alertMessage.getProtectIsSrcOrDst(), templateProtectLevel);
//根据fiveTuple生成动态指令信息
- List<TaskCommandInfo> dynamicCommandInfoList = new ArrayList<TaskCommandInfo>();
+ List<TaskCommandInfo> dynamicCommandInfoList = new ArrayList<>();
if (fiveTupleWithMaskNew.size() == 2){
TaskCommandInfo dynamicCommandInfo_bi = new TaskCommandInfo();
dynamicCommandInfo_bi.copyTaskCommandInfo(dynamicCommandInfo);
@@ -203,7 +203,7 @@ public class AlertMessageService {
peer.setPort(null);
peer.setMaskPort(null);
}
- List<FiveTupleWithMask> newFiveTupleWithMask = new ArrayList<FiveTupleWithMask>();
+ List<FiveTupleWithMask> newFiveTupleWithMask = new ArrayList<>();
//生成指令
FiveTupleWithMask command1 = new FiveTupleWithMask();
command1.setSourceIP(peer.getIP());
diff --git a/src/main/java/com/realtime/protection/server/rule/staticrule/StaticRuleController.java b/src/main/java/com/realtime/protection/server/rule/staticrule/StaticRuleController.java
index 838a69e..0a95937 100644
--- a/src/main/java/com/realtime/protection/server/rule/staticrule/StaticRuleController.java
+++ b/src/main/java/com/realtime/protection/server/rule/staticrule/StaticRuleController.java
@@ -180,7 +180,7 @@ public class StaticRuleController implements StaticRuleControllerApi {
*/
@PostMapping("/auditbatch")
public ResponseResult updateStaticRuleAuditStatusBatch(@RequestBody Map<Integer, Integer> idsWithAuditStatusMap) {
- List<Integer> errorIds = new ArrayList<Integer>();
+ List<Integer> errorIds = new ArrayList<>();
for (Map.Entry<Integer, Integer> entry: idsWithAuditStatusMap.entrySet()) {
Integer id = entry.getKey();
Integer auditStatus = entry.getValue();