Commit a9112353 authored by zhouleilei's avatar zhouleilei

控制下发指令-日记记录优化

parent 319bd113
......@@ -527,16 +527,16 @@ public class ControlCommandServiceImpl implements ControlCommandService {
if (HttpConstants.RESULT_1.equals(result)) {
//指令下发成功
jsonViewObject.success("恢复固定配 - 指令下发成功");
jsonViewObject.success("恢复固定配 - 指令下发成功");
} else if (HttpConstants.RESULT_0.equals(result)) {
//指令下发失败
jsonViewObject.fail("恢复固定配 - 指令下发失败");
jsonViewObject.fail("恢复固定配 - 指令下发失败");
} else if (HttpConstants.RESULT_2.equals(result)) {
//指令执行成功
jsonViewObject.success("恢复固定配 - 指令执行成功");
jsonViewObject.success("恢复固定配 - 指令执行成功");
} else {
//指令执行失败
jsonViewObject.fail("恢复固定配 - 指令执行失败");
jsonViewObject.fail("恢复固定配 - 指令执行失败");
}
return jsonViewObject;
}
......
......@@ -206,6 +206,7 @@ public class CommandFaildTask {
public void insertCommandLog(String queryTime, JsonViewObject jsonViewObject, JSONObject jsonObject, int commandType, int updateCount) {
updateCount = updateCount + 1;
SignalCommandLogPO signalCommandLogPO = new SignalCommandLogPO();
jsonObject.put("commandType",commandType);
signalCommandLogPO.setCrossId(jsonObject.getString("crossId"));
signalCommandLogPO.setDataInfo(jsonObject.toJSONString());
signalCommandLogPO.setCommandType(5);
......
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