|
|
@ -263,7 +263,7 @@ public class OperationLogAspect { |
|
|
|
// return;
|
|
|
|
//}
|
|
|
|
|
|
|
|
saveOperLog(jsonResult, operLog, pointArgs, request, deviceIds, deviceNames, deviceType, remark); |
|
|
|
saveOperLog(((JSONObject) JSON.toJSON(jsonResult)).getJSONArray("data"), operLog, pointArgs, request, deviceIds, deviceNames, deviceType, remark); |
|
|
|
|
|
|
|
if ((Objects.equals(deviceType, UniversalEnum.TWO.getValue()) || Objects.equals(deviceType, UniversalEnum.FIVE.getValue())) && Objects.nonNull(operLog.getId())) { |
|
|
|
|
|
|
@ -346,7 +346,7 @@ public class OperationLogAspect { |
|
|
|
operLog.setOperType(UniversalEnum.ONE.getValue()); |
|
|
|
} |
|
|
|
|
|
|
|
saveOperLog(jsonResult, operLog, pointArgs, request, deviceIds, deviceNames, deviceType, remark); |
|
|
|
saveOperLog(((JSONObject) JSON.toJSON(jsonResult)).getJSONArray("data"), operLog, pointArgs, request, deviceIds, deviceNames, deviceType, remark); |
|
|
|
|
|
|
|
|
|
|
|
//if ((Objects.equals(deviceType, "2") || Objects.equals(deviceType, "5")) && Objects.nonNull(operLog.getId())) {
|
|
|
@ -385,7 +385,7 @@ public class OperationLogAspect { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void saveOperLog(Object jsonResult, DcOperLog operLog, Object[] pointArgs, HttpServletRequest request, ArrayList<String> deviceIds, ArrayList<String> deviceNames, String deviceType, StringBuilder remark) { |
|
|
|
private void saveOperLog(JSONArray jsonResult, DcOperLog operLog, Object[] pointArgs, HttpServletRequest request, ArrayList<String> deviceIds, ArrayList<String> deviceNames, String deviceType, StringBuilder remark) { |
|
|
|
IDcOperLogService dcOperLogService = SpringUtils.getBean(IDcOperLogService.class); |
|
|
|
JSONArray jsonArray = (JSONArray) JSON.toJSON(pointArgs); |
|
|
|
|
|
|
@ -396,7 +396,7 @@ public class OperationLogAspect { |
|
|
|
operLog.setOperTime(new Date()); |
|
|
|
operLog.setDcDeviceType(deviceType); |
|
|
|
operLog.setRemark(remark.toString()); |
|
|
|
operLog.setJsonResult(jsonResult.toString()); |
|
|
|
operLog.setJsonResult(jsonResult.toJSONString()); |
|
|
|
dcOperLogService.save(operLog); |
|
|
|
} |
|
|
|
} |
|
|
|