| | |
| | | private static final Logger log = LoggerFactory.getLogger(DeviceStatusDataHandler.class); |
| | | @Autowired |
| | | private WorkstationCache workstationCache; |
| | | //@Autowired |
| | | //private IotDBSessionConfig iotdbCfg; |
| | | //@Autowired |
| | | //private IotDBCommonService iotDBCommonService; |
| | | |
| | | @Autowired |
| | | private DeviceStateService deviceStateService; |
| | | @Override |
| | |
| | | state.setShiftTimeType(data.getShiftTimeType()); |
| | | fillWorkStationCondition(data, state); |
| | | |
| | | //insertState(state); |
| | | deviceStateService.saveDeviceStates(Arrays.asList(state)); |
| | | |
| | | log.info("设备状态保存完成"); |