Commit 303beff8 authored by KeYong's avatar KeYong

加系统运行日志

parent bdb1cc1a
...@@ -72,6 +72,7 @@ public class FireSystemAction { ...@@ -72,6 +72,7 @@ public class FireSystemAction {
@MethodParam(paramLabel = "系统运行状态") String runStateCode, @MethodParam(paramLabel = "系统运行状态") String runStateCode,
@MethodParam(paramLabel = "多指标复合判断") String boolValue, @MethodParam(paramLabel = "多指标复合判断") String boolValue,
@MethodParam(paramLabel = "测点指标数据") Object paramObj) throws Exception { @MethodParam(paramLabel = "测点指标数据") Object paramObj) throws Exception {
log.info("规则调用装备改变系统运行状态>>>>>>>>>>>>>>>>>" + JSON.toJSONString(paramObj));
boolean bool = Boolean.FALSE; boolean bool = Boolean.FALSE;
LambdaQueryWrapper<FireFightingSystemEntity> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<FireFightingSystemEntity> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(FireFightingSystemEntity::getCode, code).eq(FireFightingSystemEntity::getSystemTypeCode, systemTypeCode); queryWrapper.eq(FireFightingSystemEntity::getCode, code).eq(FireFightingSystemEntity::getSystemTypeCode, systemTypeCode);
...@@ -112,6 +113,7 @@ public class FireSystemAction { ...@@ -112,6 +113,7 @@ public class FireSystemAction {
} }
} else { } else {
entity.setSystemRunState(runStateCode); entity.setSystemRunState(runStateCode);
log.info("装备更新系统表信息>>>> >>>>>>>>>>>>>>" + JSON.toJSONString(entity));
bool = systemService.saveOrUpdate(entity); bool = systemService.saveOrUpdate(entity);
} }
if (bool) { if (bool) {
......
...@@ -1266,6 +1266,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -1266,6 +1266,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
// RequestContext.setAppKey(amosAuth.getAppKey()); // RequestContext.setAppKey(amosAuth.getAppKey());
// RequestContext.setProduct(amosAuth.getProduct()); // RequestContext.setProduct(amosAuth.getProduct());
// RequestContext.setToken(amosAuth.getToken()); // RequestContext.setToken(amosAuth.getToken());
log.info("装备指标触发规则>>>>>>>>>>>>>>>>>>>>>" + JSON.toJSONString(indexDto) + " >>>>>>>>>>>>>>" + JSON.toJSONString(autoExecPath));
ruleTrigger.publish(indexDto, autoExecPath, new String[] {}); ruleTrigger.publish(indexDto, autoExecPath, new String[] {});
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
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