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