|
|
@ -224,7 +224,7 @@ public class OperationLogAspect { |
|
|
|
JSONObject params = function.getJSONObject("params"); |
|
|
|
|
|
|
|
|
|
|
|
if (Objects.equals(deviceType, "2")) { |
|
|
|
if (Objects.equals(deviceType, UniversalEnum.TWO.getValue())) { |
|
|
|
|
|
|
|
//if (Objects.equals(functionId, UniversalEnum.ELEVEN.getValue())) {
|
|
|
|
//
|
|
|
@ -235,13 +235,13 @@ public class OperationLogAspect { |
|
|
|
|
|
|
|
JSONArray parameters = params.getJSONArray("parameters"); |
|
|
|
|
|
|
|
for (int i2 = 0; i2 < parameters.size(); i2++) { |
|
|
|
for (int i2 = UniversalEnum.ZERO.getNumber(); i2 < parameters.size(); i2++) { |
|
|
|
|
|
|
|
remark.append(((JSONObject) JSON.toJSON(parameters.get(i2))).getString("CONTENT")); |
|
|
|
//remark.append("文件内容:").append(((JSONObject) JSON.toJSON(parameters.get(i2))).getString("CONTENT"));
|
|
|
|
|
|
|
|
if (i2 < parameters.size() - 1) { |
|
|
|
remark.append("、"); |
|
|
|
if (i2 < parameters.size() - UniversalEnum.ONE.getNumber()) { |
|
|
|
remark.append(UniversalEnum.SEMICOLON.getValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -252,175 +252,175 @@ public class OperationLogAspect { |
|
|
|
//
|
|
|
|
//}
|
|
|
|
|
|
|
|
} else if (Objects.equals(deviceType, "5")) { |
|
|
|
} else if (Objects.equals(deviceType, UniversalEnum.FIVE.getValue())) { |
|
|
|
|
|
|
|
remark.append(params.getString("text")); |
|
|
|
|
|
|
|
} else if (Objects.equals(deviceType, "10")) { |
|
|
|
} else if (Objects.equals(deviceType, UniversalEnum.TEN.getValue())) { |
|
|
|
|
|
|
|
String set = params.getString("SET"); |
|
|
|
String set = params.getString(UniversalEnum.SET.getValue()); |
|
|
|
if (Objects.equals(functionId, UniversalEnum.SETMD.getValue())) { |
|
|
|
|
|
|
|
if (Objects.equals(set, "0")) { |
|
|
|
if (Objects.equals(set, UniversalEnum.ZERO.getValue())) { |
|
|
|
|
|
|
|
remark.append("关闭"); |
|
|
|
remark.append(UniversalEnum.OFF.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(set, "1")) { |
|
|
|
} else if (Objects.equals(set, UniversalEnum.ONE.getValue())) { |
|
|
|
|
|
|
|
remark.append("常亮"); |
|
|
|
remark.append(UniversalEnum.STEADY_ON.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(set, "2")) { |
|
|
|
} else if (Objects.equals(set, UniversalEnum.TWO.getValue())) { |
|
|
|
|
|
|
|
remark.append("间隔100ms闪烁"); |
|
|
|
remark.append(UniversalEnum.BLINK_AT_AN_INTERVAL_OF_100_MS.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(set, "3")) { |
|
|
|
} else if (Objects.equals(set, UniversalEnum.THREE.getValue())) { |
|
|
|
|
|
|
|
remark.append("间隔200ms闪烁"); |
|
|
|
remark.append(UniversalEnum.BLINK_AT_AN_INTERVAL_OF_200_MS.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(set, "4")) { |
|
|
|
} else if (Objects.equals(set, UniversalEnum.FOUR.getValue())) { |
|
|
|
|
|
|
|
remark.append("间隔500ms闪烁"); |
|
|
|
remark.append(UniversalEnum.BLINK_AT_AN_INTERVAL_OF_500_MS.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(set, "5")) { |
|
|
|
} else if (Objects.equals(set, UniversalEnum.FIVE.getValue())) { |
|
|
|
|
|
|
|
remark.append("2次闪烁"); |
|
|
|
remark.append(UniversalEnum.DOUBLE_FLICKER.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(set, "6")) { |
|
|
|
} else if (Objects.equals(set, UniversalEnum.SIX.getValue())) { |
|
|
|
|
|
|
|
remark.append("SOS"); |
|
|
|
remark.append(UniversalEnum.SOS.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(set, "7")) { |
|
|
|
} else if (Objects.equals(set, UniversalEnum.SEVEN.getValue())) { |
|
|
|
|
|
|
|
remark.append("自定义闪烁时间"); |
|
|
|
remark.append(UniversalEnum.CUSTOMIZE_THE_BLINKING_TIME.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
remark.append("模式"); |
|
|
|
remark.append(UniversalEnum.MODE.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(functionId, UniversalEnum.SETTM.getValue())) { |
|
|
|
|
|
|
|
remark.append(set).append("分钟"); |
|
|
|
remark.append(set).append(UniversalEnum.MINUTES.getValue()); |
|
|
|
} |
|
|
|
|
|
|
|
} else if (Objects.equals(deviceType, "12")) { |
|
|
|
} else if (Objects.equals(deviceType, UniversalEnum.TWELVE.getValue())) { |
|
|
|
|
|
|
|
if (Objects.equals(functionId, "51")) { |
|
|
|
if (Objects.equals(functionId, UniversalEnum.FIFTY_ONE.getValue())) { |
|
|
|
|
|
|
|
//remark.append("模式:");
|
|
|
|
|
|
|
|
String mode = params.getString("mode"); |
|
|
|
|
|
|
|
if (Objects.equals(mode, "00")) { |
|
|
|
if (Objects.equals(mode, UniversalEnum.ZERO_ZERO.getValue())) { |
|
|
|
|
|
|
|
remark.append("远程手动控制模式:上行:"); |
|
|
|
String onWorkStatus = params.getString("onWorkStatus"); |
|
|
|
String inWorkStatus = params.getString("inWorkStatus"); |
|
|
|
|
|
|
|
if (Objects.equals(onWorkStatus, "00")) { |
|
|
|
if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_ZERO.getValue())) { |
|
|
|
|
|
|
|
remark.append("不更新状态,下行:"); |
|
|
|
|
|
|
|
} else if (Objects.equals(onWorkStatus, "01")) { |
|
|
|
} else if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_ONE.getValue())) { |
|
|
|
|
|
|
|
remark.append("常亮,下行:"); |
|
|
|
|
|
|
|
} else if (Objects.equals(onWorkStatus, "02")) { |
|
|
|
} else if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_TWO.getValue())) { |
|
|
|
|
|
|
|
remark.append("流水,下行:"); |
|
|
|
|
|
|
|
} else if (Objects.equals(onWorkStatus, "03")) { |
|
|
|
} else if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_THREE.getValue())) { |
|
|
|
|
|
|
|
remark.append("闪烁,下行:"); |
|
|
|
|
|
|
|
} else if (Objects.equals(onWorkStatus, "04")) { |
|
|
|
} else if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_FOUR.getValue())) { |
|
|
|
|
|
|
|
remark.append("关闭,下行:"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (Objects.equals(inWorkStatus, "00")) { |
|
|
|
if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_ZERO.getValue())) { |
|
|
|
|
|
|
|
remark.append("不更新状态"); |
|
|
|
|
|
|
|
} else if (Objects.equals(inWorkStatus, "01")) { |
|
|
|
} else if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_ONE.getValue())) { |
|
|
|
|
|
|
|
remark.append("常亮"); |
|
|
|
|
|
|
|
} else if (Objects.equals(inWorkStatus, "02")) { |
|
|
|
} else if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_TWO.getValue())) { |
|
|
|
|
|
|
|
remark.append("流水"); |
|
|
|
|
|
|
|
} else if (Objects.equals(inWorkStatus, "03")) { |
|
|
|
} else if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_THREE.getValue())) { |
|
|
|
|
|
|
|
remark.append("闪烁"); |
|
|
|
|
|
|
|
} else if (Objects.equals(inWorkStatus, "04")) { |
|
|
|
} else if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_FOUR.getValue())) { |
|
|
|
|
|
|
|
remark.append("关闭"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (Objects.equals(mode, "01")) { |
|
|
|
} else if (Objects.equals(mode, UniversalEnum.ZERO_ONE.getValue())) { |
|
|
|
|
|
|
|
remark.append("时间段自动控制模式:") |
|
|
|
.append(params.getString("startDisplayTime")) |
|
|
|
.append("-") |
|
|
|
.append(params.getString("endDisplayTime")); |
|
|
|
|
|
|
|
} else if (Objects.equals(mode, "02")) { |
|
|
|
} else if (Objects.equals(mode, UniversalEnum.ZERO_TWO.getValue())) { |
|
|
|
|
|
|
|
remark.append("万年历自动控制模式"); |
|
|
|
|
|
|
|
} else if (Objects.equals(mode, "03")) { |
|
|
|
} else if (Objects.equals(mode, UniversalEnum.ZERO_THREE.getValue())) { |
|
|
|
|
|
|
|
remark.append("能见度自动控制模式"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (Objects.equals(functionId, "30")) { |
|
|
|
} else if (Objects.equals(functionId, UniversalEnum.THIRTY.getValue())) { |
|
|
|
|
|
|
|
String onWorkStatus = params.getString("onWorkStatus"); |
|
|
|
String inWorkStatus = params.getString("inWorkStatus"); |
|
|
|
|
|
|
|
if (Objects.equals(onWorkStatus, "00")) { |
|
|
|
if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_ZERO.getValue())) { |
|
|
|
|
|
|
|
remark.append("上行:不更新状态,下行:"); |
|
|
|
|
|
|
|
} else if (Objects.equals(onWorkStatus, "01")) { |
|
|
|
} else if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_ONE.getValue())) { |
|
|
|
|
|
|
|
remark.append("上行:常亮,下行:"); |
|
|
|
|
|
|
|
} else if (Objects.equals(onWorkStatus, "02")) { |
|
|
|
} else if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_TWO.getValue())) { |
|
|
|
|
|
|
|
remark.append("上行:流水,下行:"); |
|
|
|
|
|
|
|
} else if (Objects.equals(onWorkStatus, "03")) { |
|
|
|
} else if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_THREE.getValue())) { |
|
|
|
|
|
|
|
remark.append("上行:闪烁,下行:"); |
|
|
|
|
|
|
|
} else if (Objects.equals(onWorkStatus, "04")) { |
|
|
|
} else if (Objects.equals(onWorkStatus, UniversalEnum.ZERO_FOUR.getValue())) { |
|
|
|
|
|
|
|
remark.append("上行:关闭,下行:"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (Objects.equals(inWorkStatus, "00")) { |
|
|
|
if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_ZERO.getValue())) { |
|
|
|
|
|
|
|
remark.append("不更新状态"); |
|
|
|
|
|
|
|
} else if (Objects.equals(inWorkStatus, "01")) { |
|
|
|
} else if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_ONE.getValue())) { |
|
|
|
|
|
|
|
remark.append("常亮"); |
|
|
|
|
|
|
|
} else if (Objects.equals(inWorkStatus, "02")) { |
|
|
|
} else if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_TWO.getValue())) { |
|
|
|
|
|
|
|
remark.append("流水"); |
|
|
|
|
|
|
|
} else if (Objects.equals(inWorkStatus, "03")) { |
|
|
|
} else if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_THREE.getValue())) { |
|
|
|
|
|
|
|
remark.append("闪烁"); |
|
|
|
|
|
|
|
} else if (Objects.equals(inWorkStatus, "04")) { |
|
|
|
} else if (Objects.equals(inWorkStatus, UniversalEnum.ZERO_FOUR.getValue())) { |
|
|
|
|
|
|
|
remark.append("关闭"); |
|
|
|
|
|
|
@ -561,30 +561,30 @@ public class OperationLogAspect { |
|
|
|
// : String.valueOf(((HashMap<String, Object>) (DEVICEFUNCTIONNAME.get(deviceType))).get(functionId));
|
|
|
|
//
|
|
|
|
//remark.append(hashMap).append(":");
|
|
|
|
if (Objects.equals(deviceType, "13") || Objects.equals(deviceType, "16")) { |
|
|
|
if (Objects.equals(deviceType, UniversalEnum.THIRTEEN.getValue()) || Objects.equals(deviceType, UniversalEnum.SIXTEEN.getValue())) { |
|
|
|
|
|
|
|
String identification = params.getString("deviceName"); |
|
|
|
String value = params.getString("value"); |
|
|
|
|
|
|
|
if (Objects.equals(identification, "ac_out_1_en")) { |
|
|
|
|
|
|
|
remark.append("220V 输出 1").append(Objects.equals(value, "1") ? "打开" : "关闭"); |
|
|
|
remark.append("220V 输出 1").append(Objects.equals(value, UniversalEnum.ONE.getValue()) ? UniversalEnum.UNPACK.getValue() : UniversalEnum.OFF.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(identification, "ac_out_2_en")) { |
|
|
|
|
|
|
|
remark.append("220V 输出 2").append(Objects.equals(value, "1") ? "打开" : "关闭"); |
|
|
|
remark.append("220V 输出 2").append(Objects.equals(value, UniversalEnum.ONE.getValue()) ? UniversalEnum.UNPACK.getValue() : UniversalEnum.OFF.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(identification, "dc_out_1_en")) { |
|
|
|
|
|
|
|
remark.append("12V 输出 1").append(Objects.equals(value, "1") ? "打开" : "关闭"); |
|
|
|
remark.append("12V 输出 1").append(Objects.equals(value, UniversalEnum.ONE.getValue()) ? UniversalEnum.UNPACK.getValue() : UniversalEnum.OFF.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(identification, "dc_out_2_en")) { |
|
|
|
|
|
|
|
remark.append("12V 输出 2").append(Objects.equals(value, "1") ? "打开" : "关闭"); |
|
|
|
remark.append("12V 输出 2").append(Objects.equals(value, UniversalEnum.ONE.getValue()) ? UniversalEnum.UNPACK.getValue() : UniversalEnum.OFF.getValue()); |
|
|
|
|
|
|
|
} else if (Objects.equals(identification, "fan_out_en")) { |
|
|
|
|
|
|
|
remark.append("风扇").append(Objects.equals(value, "1") ? "打开" : "关闭"); |
|
|
|
remark.append("风扇").append(Objects.equals(value, UniversalEnum.ONE.getValue()) ? UniversalEnum.UNPACK.getValue() : UniversalEnum.OFF.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|