From da560584698c2b0860bb259163cd44d8229f48af Mon Sep 17 00:00:00 2001 From: PushM <584406942@qq.com> Date: Wed, 17 Apr 2024 22:05:32 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81TaskCommandIndo=E5=88=A0=E5=8E=BB?= =?UTF-8?q?=E4=BA=86depart=EF=BC=8C=E4=BD=BF=E7=94=A8taskCreateDepart?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9mapper=E4=B9=9F=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=BD=BF=E7=94=A8taskCreateDepart=202=E3=80=81=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=9D=99=E6=80=81=E8=A7=84=E5=88=99=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=8A=9F=E8=83=BD=EF=BC=8Cpost=E8=AF=B7?= =?UTF-8?q?=E6=B1=82body=E4=B8=BAid=E5=92=8CauditStatus=E7=9A=84Map?= =?UTF-8?q?=EF=BC=8C=E5=85=A5=E5=BA=93=E4=BD=BF=E7=94=A8sqlSessionWrapper?= =?UTF-8?q?=EF=BC=8Ctest=E5=B7=B2=E9=80=9A=E8=BF=87=203=E3=80=81=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E4=BB=BB=E5=8A=A1=E6=8E=A5=E6=94=B6alertmessage?= =?UTF-8?q?=EF=BC=8C=E6=9F=A5=E8=AF=A2DynamicTaskInfos=E7=94=9F=E6=88=90co?= =?UTF-8?q?mmand=E6=97=B6=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=85=B3=E8=81=94t=5F?= =?UTF-8?q?strategy=5Ftemplate=E8=A1=A8=EF=BC=8Cselect=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9F=A5=E8=AF=A2=E5=B1=80=E7=82=B9dynamic?= =?UTF-8?q?=5Frule=5Frange=E3=80=81=E4=BA=8B=E4=BB=B6=E7=B1=BB=E5=9E=8Bstr?= =?UTF-8?q?ategy=5Ftemplate=5Fname=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../protection/server/alertmessage/AlertMessageService.java | 4 ++-- .../server/rule/staticrule/StaticRuleController.java | 2 +- 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 dynamicCommandInfoList = new ArrayList(); + List 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 newFiveTupleWithMask = new ArrayList(); + List 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 idsWithAuditStatusMap) { - List errorIds = new ArrayList(); + List errorIds = new ArrayList<>(); for (Map.Entry entry: idsWithAuditStatusMap.entrySet()) { Integer id = entry.getKey(); Integer auditStatus = entry.getValue();