| | |
| | | |
| | | import com.sandu.common.util.SpringContextHolder; |
| | | import com.sandu.ximon.admin.manager.iot.frame.A5Frame; |
| | | import com.sandu.ximon.admin.manager.iot.frame.IRequestFrame; |
| | | import com.sandu.ximon.admin.manager.iot.rrpc.dto.CommonFrame; |
| | | import com.sandu.ximon.admin.service.DeviceOperationLogService; |
| | | import com.sandu.ximon.admin.service.InnerFrameDataService; |
| | |
| | | * @param a5Frame |
| | | * @param commonFrame |
| | | */ |
| | | public static void storeInnerFrameData(String mac, String innerFrameTpye, A5Frame a5Frame, CommonFrame commonFrame) { |
| | | public static void storeInnerFrameData(String mac, String innerFrameTpye, IRequestFrame a5Frame, CommonFrame commonFrame) { |
| | | String reportInnerFrame = ""; |
| | | if (commonFrame != null) { |
| | | reportInnerFrame = commonFrame.getConnectType() + commonFrame.getFunctionCode() + commonFrame.getOrderType() + commonFrame.getPayloadLength() + commonFrame.getPayload(); |
| | |
| | | SpringContextHolder.getBean(DeviceOperationLogService.class) |
| | | .saveDeviceOperationLog(deviceCodeList.toString(), deviceName, operation, content, poleCodeList.toString()); |
| | | } |
| | | |
| | | /** |
| | | * 登录专属 |
| | | * |
| | | * @param userId |
| | | * @param UserName |
| | | * @param operation |
| | | * @param content |
| | | */ |
| | | public static void storeOperationLoginData(Long userId, String UserName, String operation, String content) { |
| | | SpringContextHolder.getBean(DeviceOperationLogService.class) |
| | | .storeOperationLoginData(userId, UserName, operation, content); |
| | | } |
| | | } |