diff --git a/riis-system/src/main/java/com/yfd/platform/modules/basedata/controller/VoicePatrolLogController.java b/riis-system/src/main/java/com/yfd/platform/modules/basedata/controller/VoicePatrolLogController.java index 15e73b5..d11361f 100644 --- a/riis-system/src/main/java/com/yfd/platform/modules/basedata/controller/VoicePatrolLogController.java +++ b/riis-system/src/main/java/com/yfd/platform/modules/basedata/controller/VoicePatrolLogController.java @@ -27,6 +27,7 @@ import javax.annotation.Resource; import java.util.Date; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.TimeUnit; /** *
@@ -48,8 +49,6 @@ public class VoicePatrolLogController { @Resource private ISubstationPatroldeviceService substationPatroldeviceService; @Resource - private HttpRESTfulUtils httpRESTfulUtils; - @Resource private VoiceServerService voiceServerService; @GetMapping("/getVoicePatrolPage") @@ -105,7 +104,7 @@ public class VoicePatrolLogController { if (aBoolean != null && aBoolean) { throw new RuntimeException("当前设备正在录制"); } - redisTemplate.opsForValue().set(id, "1", 5 * 60); + redisTemplate.opsForValue().set(id, "1", 5 * 60, TimeUnit.SECONDS); // 生成日志对象基础信息(同步执行) VoicePatrolLog log = buildBaseLog(substationPatroldevice, duration); // 提交异步任务 diff --git a/riis-system/src/main/java/com/yfd/platform/modules/patroltask/controller/AlarmLogController.java b/riis-system/src/main/java/com/yfd/platform/modules/patroltask/controller/AlarmLogController.java index d412d8a..58d985c 100644 --- a/riis-system/src/main/java/com/yfd/platform/modules/patroltask/controller/AlarmLogController.java +++ b/riis-system/src/main/java/com/yfd/platform/modules/patroltask/controller/AlarmLogController.java @@ -193,14 +193,13 @@ public class AlarmLogController { public ResponseResult getAlarmLogPage(Page