admin/update_device_status.bat
lvfengfree 2e28ad1472 feat: 拆分设备状态为AMT状态和Agent状态
- 数据库:添加 amt_status 和 agent_status 字段
- 后端:Device 实体类和 DeviceDTO 添加新状态字段
- 后端:DeviceService 添加状态检测和更新方法
- 后端:添加 AmtStatusCheckTask 定时任务(每30秒检测一次)
- 前端:设备列表页面拆分状态列显示
- 前端:统计卡片显示 AMT 和 Agent 在线/离线数量
- 网络扫描:自动设置 AMT 状态为在线
- 文档:添加 DEVICE_STATUS_SPLIT.md 和 AMT_REALTIME_STATUS.md
2026-03-01 19:18:32 +08:00

23 lines
489 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo 更新设备状态字段...
echo.
mysql -h localhost -P 3306 -u root -proot soybean_admin < update_device_status_fields.sql
if %errorlevel% == 0 (
echo.
echo 数据库更新成功!
echo.
echo 已添加字段:
echo - amt_status: AMT 状态online/offline
echo - agent_status: Agent 状态online/offline
echo.
) else (
echo.
echo 数据库更新失败!
echo 请检查 MySQL 连接和 SQL 文件。
echo.
)
pause