| | |
| | | break; |
| | | } |
| | | } |
| | | redisTemplate.opsForValue().set("upload_real_time_monitoring_data:" + transaction_serial_number, System.currentTimeMillis(), 1, TimeUnit.MINUTES); |
| | | redisTemplate.opsForValue().set("upload_real_time_monitoring_data:" + transaction_serial_number, System.currentTimeMillis(), 10, TimeUnit.MINUTES); |
| | | try { |
| | | // 持久化消息 |
| | | UploadRealTimeMonitoringData uploadRealTimeMonitoringData = new UploadRealTimeMonitoringData(); |
| | |
| | | Object o1 = redisTemplate.opsForValue().get("bms_demand_and_charger_exportation:" + transaction_serial_number1); |
| | | if(null != o1){ |
| | | Long m = System.currentTimeMillis() - (Long) o1; |
| | | if(m < 60000){ |
| | | if(m < (5 * 60 * 1000)){ |
| | | break; |
| | | } |
| | | } |
| | | redisTemplate.opsForValue().set("bms_demand_and_charger_exportation:" + transaction_serial_number1, System.currentTimeMillis(), 1, TimeUnit.MINUTES); |
| | | redisTemplate.opsForValue().set("bms_demand_and_charger_exportation:" + transaction_serial_number1, System.currentTimeMillis(), 10, TimeUnit.MINUTES); |
| | | |
| | | // 持久化消息 |
| | | BmsDemandAndChargerExportation bmsDemandAndChargerExportation = new BmsDemandAndChargerExportation(); |
| | |
| | | Object o2 = redisTemplate.opsForValue().get("bms_information:" + transaction_serial_number2); |
| | | if(null != o2){ |
| | | Long m = System.currentTimeMillis() - (Long) o2; |
| | | if(m < 60000){ |
| | | if(m < (5 * 60 * 1000)){ |
| | | break; |
| | | } |
| | | } |
| | | redisTemplate.opsForValue().set("bms_information:" + transaction_serial_number2, System.currentTimeMillis(), 1, TimeUnit.MINUTES); |
| | | redisTemplate.opsForValue().set("bms_information:" + transaction_serial_number2, System.currentTimeMillis(), 10, TimeUnit.MINUTES); |
| | | |
| | | // 持久化消息 |
| | | BmsInformation bmsInformation = new BmsInformation(); |