44 lines
1.3 KiB
Java
44 lines
1.3 KiB
Java
package com.cbsd.client.check;
|
||
|
||
import com.cbsd.client.check.ICheckInterface;
|
||
|
||
import java.util.List;
|
||
import java.util.Map;
|
||
|
||
public class Check_21e7127b64624d3ab0b20e3c08f2a61d implements ICheckInterface {
|
||
|
||
/**
|
||
* 检查
|
||
* @param originalCommand 原始指令数据
|
||
* @param preTreatmentCommand 预处理指令数据,若无预处理,则为原始指令数据
|
||
* @param repeatCount 重复次数
|
||
* @param hitCount 命中次数
|
||
* @param latestHitTime 最后命中时间
|
||
* @param dataMap 数据集合,key为协议字段属性名(label),value为物理值
|
||
* @return 日志信息列表
|
||
*/
|
||
@Override
|
||
public List<String> check(String originalCommand, String preTreatmentCommand, int repeatCount, int hitCount, String latestHitTime, Map<String, String> dataMap) {
|
||
java.util.List<String> result = new java.util.ArrayList<>();
|
||
if (dataMap != null && !dataMap.isEmpty()) {
|
||
for (Map.Entry<String, String> entry : dataMap.entrySet()) {
|
||
result.add("----字段: " + entry.getKey() + ", 值: " + entry.getValue());
|
||
}
|
||
} else {
|
||
result.add("输入参数为空");
|
||
}
|
||
|
||
return result;
|
||
}
|
||
|
||
/**
|
||
* 描述
|
||
*
|
||
* @return 描述内容
|
||
*/
|
||
@Override
|
||
public String comment() {
|
||
return "";
|
||
}
|
||
}
|