| | |
| | | private IDayReportFloodClient dayReportFloodClient; |
| | | |
| | | /** |
| | | * 南科院Arima请求预测 |
| | | * 获取每日报汛内容 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @XxlJob("saveYesterdayFloodReportContent") |
| | | public ReturnT<String> saveYesterdayFloodReportContent(String param) { |
| | | XxlJobLogger.log("任务开始"); |
| | | XxlJobLogger.log("定时器执行时间:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(DateUtil.now())); |
| | | XxlJobLogger.log("参数:" + param); |
| | | JSONObject jsonParam = JSON.parseObject(param); |
| | | String isShow = ""; |
| | | if (jsonParam != null) { |
| | | isShow = jsonParam.getString("isShow"); |
| | | } else { |
| | | isShow = ""; |
| | | } |
| | | try { |
| | | sjztMdClient.saveYesterdayFloodReportContent(isShow); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | XxlJobLogger.log("定时器执行结束时间:" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(DateUtil.now())); |
| | | XxlJobLogger.log("结束任务..."); |
| | | return ReturnT.SUCCESS; |
| | | } |
| | | |
| | | /** |
| | | * 每日报汛定时器 |
| | | * |
| | | * @param param |
| | | * @return |