| | |
| | | |
| | | --- |
| | | |
| | | ## 五、定时任务(可选 HTTP 触发) |
| | | ## 五、定时任务(system_timer + quartz_job) |
| | | |
| | | | 任务 | Cron | HTTP(admin_timer) | |
| | | |------|------|---------------------| |
| | | | 采集器状态 | `0 */5 * * * ?` | GET `/timer/yw/getElectricalStatus` | |
| | | | 批量抄表 | `30 0 * * * ?` | GET `/timer/yw/syncElectricalMeterData` | |
| | | | 日志清理 | `0 30 2 * * ?` | GET `/timer/yw/cleanElectricalLog` | |
| | | 由 `system_timer` 读取 `quartz_job` 表,通过 `visitServiceJob` Bean 反射调用 `VisitServiceFegin` 对应方法,HTTP 落到 `admin_timer` 的 `YwTimerController`。 |
| | | |
| | | 配置脚本:`server/db/quartz_job.yw_timer.sql`(执行后需在作业调度平台重启/恢复任务以加载 Cron)。 |
| | | |
| | | | 任务 | Cron | module(Feign 方法) | HTTP(admin_timer) | |
| | | |------|------|----------------------|---------------------| |
| | | | 采集器状态 | `0 */5 * * * ?` | `getElectricalStatus` | GET `/timer/yw/getElectricalStatus` | |
| | | | 批量抄表 | `30 0 * * * ?` | `syncElectricalMeterData` | GET `/timer/yw/syncElectricalMeterData` | |
| | | | 日志清理 | `0 30 2 * * ?` | `cleanElectricalLog` | GET `/timer/yw/cleanElectricalLog` | |
| | | | 异步任务状态补偿 | `0 5 * * * ?` | `syncElectricalAsyncStatus` | GET `/timer/yw/syncElectricalAsyncStatus` | |
| | | | 空调网关状态 | `0 */5 * * * ?` | `syncConditionerGatewayStatus` | GET `/timer/yw/syncConditionerGatewayStatus` | |
| | | | 空调内机状态 | `0 */10 * * * ?` | `syncConditionerIndoorUnits` | GET `/timer/yw/syncConditionerIndoorUnits` | |