Commit 69cdd52d authored by wanghao's avatar wanghao

1 写自检后 判断下 是否写成功

2 写自检 根据 状态 去 判断 是否需要写
parent 6dcda4aa
......@@ -60,9 +60,7 @@ public class AgingStageTwoProcessJob implements Job {
public void execute(JobExecutionContext context) {
// 1. 初始化变量,避免空指针
JobDataMap data;
String fPowerOutageIp;
Long fStoreyId = null;
int fPowerOutagePort;
TStoreyInfo tStoreyInfo = null;
long startTime = System.currentTimeMillis();
......@@ -74,13 +72,6 @@ public class AgingStageTwoProcessJob implements Job {
return;
}
fStoreyId = data.getLong("fStoreyId");
fPowerOutageIp = data.getString("fPowerOutageIp");
fPowerOutagePort = data.getInt("fPowerOutagePort");
if(StringUtils.isBlank(fPowerOutageIp)) {
log.info("参数缺失:fStoreyId={}, ip={}, port={},终止执行", fStoreyId, fPowerOutageIp, fPowerOutagePort);
return;
}
// 4. 查询设备信息
tStoreyInfo = tStoreyInfoMapper.selectTStoreyInfoById(fStoreyId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment