feat: 新增用户端配置获取和批量更新接口

主要修改:
1. 在SystemConfigController中新增获取用户端配置的接口。
2. 实现批量更新系统配置的接口,支持根据配置键进行更新。
3. 增强SystemConfigService,添加用户端相关配置的获取方法及配置值验证逻辑。

技术细节:
- 新增的接口提升了系统配置管理的灵活性,支持批量操作和用户端配置的动态获取。
This commit is contained in:
zyh
2025-08-27 17:20:35 +08:00
parent 01bc703ea2
commit 429e12cf50
8 changed files with 472 additions and 42 deletions

View File

@@ -108,7 +108,7 @@ public class ImageSaveScheduleTask {
Thread.sleep(delaySeconds * 1000L);
// 保存任务的进度图片
deviceTaskUpdateService.saveProgressImagesForTask(task.getMachineId(), task.getId());
deviceTaskUpdateService.saveProgressImagesForTask(task.getMachineId(), task.getCodeNo());
log.debug("任务 {} (设备: {}) 进度图片保存请求已提交", task.getId(), task.getMachineId());
@@ -150,7 +150,7 @@ public class ImageSaveScheduleTask {
imageTaskExecutor.execute(() -> {
for (LinkTask task : deviceTasks) {
try {
deviceTaskUpdateService.saveProgressImagesForTask(deviceId, task.getId());
deviceTaskUpdateService.saveProgressImagesForTask(deviceId, task.getCodeNo());
Thread.sleep(2000); // 每个任务间延迟2秒
} catch (InterruptedException e) {
Thread.currentThread().interrupt();