| | |
| | | DeviceOperationLog deviceOperationLog = new DeviceOperationLog(); |
| | | deviceOperationLog.setUserId(SecurityUtils.getUserId()); |
| | | deviceOperationLog.setUserName(SecurityUtils.getUsername()); |
| | | if (deviceCode != null) { |
| | | if (deviceCode != null && !"[]".equals(deviceCode)) { |
| | | deviceOperationLog.setDeviceCode(deviceCode); |
| | | } |
| | | if (deviceName != null) { |
| | |
| | | } |
| | | deviceOperationLog.setOperation(operation); |
| | | deviceOperationLog.setContent(content); |
| | | if (poleCode != null) { |
| | | if (poleCode != null && !"[]".equals(poleCode)) { |
| | | deviceOperationLog.setPoleCode(poleCode); |
| | | } |
| | | this.save(deviceOperationLog); |