| | |
| | | import com.sandu.common.util.SpringContextHolder; |
| | | import com.sandu.ximon.admin.manager.iot.frame.A5Frame; |
| | | import com.sandu.ximon.admin.manager.iot.rrpc.dto.CommonFrame; |
| | | import com.sandu.ximon.admin.service.DeviceOperationLogService; |
| | | import com.sandu.ximon.admin.service.InnerFrameDataService; |
| | | |
| | | /** |
| | |
| | | * @date 2022/5/13 15:06 |
| | | */ |
| | | public class StoreOperationRecordsUtils { |
| | | /** |
| | | * 保存硬件控制帧数据 |
| | | * |
| | | * @param mac |
| | | * @param innerFrameTpye |
| | | * @param a5Frame |
| | | * @param commonFrame |
| | | */ |
| | | public static void storeInnerFrameData(String mac, String innerFrameTpye, A5Frame a5Frame, CommonFrame commonFrame) { |
| | | String reportInnerFrame = ""; |
| | | if (commonFrame != null) { |
| | |
| | | syncType = "异步"; |
| | | } |
| | | SpringContextHolder.getBean(InnerFrameDataService.class).storeInnerFrameData(mac, innerFrameTpye, syncType, requstInnerFrame, reportInnerFrame); |
| | | |
| | | } |
| | | |
| | | public static void storeOperationData(String mac, String innerFrameTpye, String syncType, String requsetInnerFrame, String reportInnerFrame) { |
| | | //TODO |
| | | |
| | | /** |
| | | * 保存操作数据 |
| | | * |
| | | * @param deviceCode |
| | | * @param deviceName |
| | | * @param operation |
| | | * @param content |
| | | * @param poleCode |
| | | */ |
| | | public static void storeOperationData(String deviceCode, String deviceName, String operation, String content, String poleCode) { |
| | | SpringContextHolder.getBean(DeviceOperationLogService.class).saveDeviceOperationLog(deviceCode, deviceName, operation, content, poleCode); |
| | | } |
| | | } |