Browse Source

机柜加操作记录

develop
wangsixiang 1 month ago
parent
commit
f6a293ffc6
  1. 64
      zc-business/src/main/java/com/zc/business/interfaces/OperationLogAspect.java

64
zc-business/src/main/java/com/zc/business/interfaces/OperationLogAspect.java

@ -211,7 +211,16 @@ public class OperationLogAspect {
String functionId = function.getString("functionId");
if (deviceType.equals("17")||deviceType.equals("18")){ //动环数据操作日志暂不放进数据库
if(Objects.equals(deviceType, UniversalEnum.SEVENTEEN.getValue())){ //机柜的读取不记录
if (Objects.equals(functionId,"04")){
return;
}
if (Objects.equals(functionId,"03")){
return;
}
}
if(Objects.equals(deviceType, UniversalEnum.EIGHTEEN.getValue())){ //机柜空调的读取不记录
return;
}
if (Objects.equals(functionId, UniversalEnum.A_ONE.getValue()) ||
@ -456,6 +465,26 @@ public class OperationLogAspect {
remark.append("雨刷开启");
}
}else if(Objects.equals(deviceType, UniversalEnum.SEVENTEEN.getValue())){ //动环机柜
if(Objects.equals(functionId, "SL")){
String aSwitch = params.getString("switch");
if ("1".equals(aSwitch)){
remark.append("门禁打开");
}else if ("0".equals(aSwitch)){
remark.append("门禁关闭");
}else {
remark.append("操作门禁");
}
}
if (Objects.equals(functionId, "TL")){
remark.append("雷击清零");
}
if (Objects.equals(functionId, "SR")){
remark.append("系统复位");
}
if (Objects.equals(functionId, "RS")){
remark.append("令重合闸复位");
}
}
@ -581,9 +610,19 @@ public class OperationLogAspect {
String functionId = String.valueOf(pointArgs[UniversalEnum.ONE.getNumber()]);
JSONObject params = (JSONObject) JSON.toJSON(pointArgs[UniversalEnum.TWO.getNumber()]);
if (deviceType.equals("17")||deviceType.equals("18")){ //动环数据操作日志暂不放进数据库
if(Objects.equals(deviceType, UniversalEnum.SEVENTEEN.getValue())){ //机柜的读取不记录
if (Objects.equals(functionId,"04")){
return;
}
if (Objects.equals(functionId,"03")){
return;
}
}
if(Objects.equals(deviceType, UniversalEnum.EIGHTEEN.getValue())){ //机柜空调的不记录
return;
}
if (Objects.equals(functionId, UniversalEnum.A_ONE.getValue()) ||
Objects.equals(functionId, UniversalEnum.A_TWO.getValue()) ||
Objects.equals(functionId, UniversalEnum.A_THREE.getValue()) ||
@ -631,6 +670,27 @@ public class OperationLogAspect {
}
}else if(Objects.equals(deviceType, UniversalEnum.SEVENTEEN.getValue())){ //动环机柜
if(Objects.equals(functionId, "SL")){
String aSwitch = params.getString("switch");
if ("1".equals(aSwitch)){
remark.append("门禁打开");
}else if ("0".equals(aSwitch)){
remark.append("门禁关闭");
}else {
remark.append("操作门禁");
}
}
if (Objects.equals(functionId, "TL")){
remark.append("雷击清零");
}
if (Objects.equals(functionId, "SR")){
remark.append("系统复位");
}
if (Objects.equals(functionId, "RS")){
remark.append("令重合闸复位");
}
}
if (loginUser != null) {

Loading…
Cancel
Save