1、动态、静态规则、任务、白名单、防护对象、策略模板的查询总数增加了条件
2、指令分页查询还有bug
This commit is contained in:
@@ -32,4 +32,10 @@ public interface CommandMapper {
|
||||
TaskCommandInfo queryCommandInfoByUUID(@Param("uuid") String uuid);
|
||||
|
||||
String queryCommandInfo(@Param("command_info") TaskCommandInfo commandInfo);
|
||||
|
||||
Integer queryCommandTotalNum(@Param("task_id") Long taskId,
|
||||
@Param("src_ip") String sourceIP,
|
||||
@Param("src_port") String sourcePort,
|
||||
@Param("dst_ip") String destinationIP,
|
||||
@Param("dst_port") String destinationPort);
|
||||
}
|
||||
|
||||
@@ -93,4 +93,9 @@ public class CommandService {
|
||||
public Boolean setCommandJudged(String commandId, Boolean isValid) {
|
||||
return commandMapper.setCommandJudged(commandId, isValid);
|
||||
}
|
||||
|
||||
public Integer queryCommandTotalNum(Long taskId, String sourceIP, String sourcePort,
|
||||
String destinationIP, String destinationPort){
|
||||
return commandMapper.queryCommandTotalNum(taskId, sourceIP, sourcePort, destinationIP, destinationPort);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user