| | |
| | | return ReturnT.SUCCESS; |
| | | } |
| | | |
| | | /** |
| | | * 策略42: 水位超防洪高水位告警-定时任务执行器 |
| | | * @param param |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @XxlJob("topLevOfFloAlertHandle") |
| | | public ReturnT<String> topLevOfFloAlertHandle(String param){ |
| | | XxlJobLogger.log("开始执行任务..."); |
| | | // 创建外呼任务 |
| | | ExecutorService executorService = Executors.newSingleThreadExecutor(); |
| | | executorService.submit(() -> { |
| | | // 这里是你的异步任务逻辑 |
| | | noticeClient.createAlarmNoticeTaskJobHandler("超过防洪高水位","","topLevOfFloAlertHandle"); |
| | | }); |
| | | |
| | | XxlJobLogger.log("结束自动创建任务..."); |
| | | // 返回 |
| | | return ReturnT.SUCCESS; |
| | | } |
| | | |
| | | |
| | | } |