Commit 52cb7bad authored by zhouleilei's avatar zhouleilei

获取系统优化日志-优化

parent 430e2f90
......@@ -40,7 +40,7 @@ public class SysLogServerImpl extends ServiceImpl<SysLogMapper, SysOptimizeLog>
if (temp1.get("command").equals(1)) {
temp.setCommandType("步进控制");
} else if (temp1.get("command").equals(0)) {
temp.setCommandType("步进恢复");
temp.setCommandType("解除步进");
}
break;
case "2":
......@@ -58,8 +58,26 @@ public class SysLogServerImpl extends ServiceImpl<SysLogMapper, SysOptimizeLog>
temp.setCommandType("临时方案下发");
break;
case "5":
temp.setCommandType("定时任务恢复失败");
break;
JSONObject temp3 = JSONObject.parseObject(temp.getDataInfo());
Integer commandType = temp3.getInteger("commandType");
switch (commandType) {
//1-步进控制/恢复(公用);2-恢复时间表(公用);3-相位锁定/解锁(公用);4-临时方案下发(公用);5-定时任务恢复失败;10-查询环图失败记录',
case 1:
temp.setCommandType("定时任务 - 解除步进控制");
break;
case 2:
temp.setCommandType("定时任务 - 恢复时间表");
break;
case 3:
temp.setCommandType("定时任务 - 解除相位锁定");
break;
case 4:
temp.setCommandType("定时任务 - 解除临时方案下发");
break;
default:
temp.setCommandType("定时任务 - 解除控制指令");
break;
}
default:
temp.setCommandType("其它操作");
break;
......
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