1、whitelist查询返回审核状态字段,task查询返回动作字段

2、解决alertmessageTest出错
This commit is contained in:
Hao Miao
2024-01-24 14:06:49 +08:00
parent 7cb8666867
commit 02dd20743f
5 changed files with 7 additions and 4 deletions

View File

@@ -70,7 +70,9 @@ public class AlertMessageService {
// 1查询生成指令所需信息和alertMessage中的fiveTuple信息 合并成 TaskCommandInfo;
// 2额外信息并额外查询templateId、protectLevel和taskStatus
TaskCommandInfo dynamicCommandInfo = alertMessageMapper.getDynamicTaskInfos(taskId, DynamicRuleId);
if (dynamicCommandInfo.getTemplateId() == null){
throw new IllegalArgumentException("taskId: " + taskId + " DynamicRuleId: " + DynamicRuleId + " 不匹配");
}
// 根据templateId、protectLevel获取策略模板
ProtectLevel templateProtectLevel = alertMessageMapper.queryTemplateProtectLevel(
dynamicCommandInfo.getTemplateId(),