|
|
@ -116,15 +116,14 @@ public class WeatherForecastController extends BaseController { |
|
|
|
JSONArray meteorologicalEarlyWarning6 = jsonObject.getJSONArray("meteorologicalEarlyWarning6"); |
|
|
|
JSONArray meteorologicalEarlyWarning7 = jsonObject.getJSONArray("meteorologicalEarlyWarning7"); |
|
|
|
JSONArray meteorologicalEarlyWarning8 = jsonObject.getJSONArray("meteorologicalEarlyWarning8"); |
|
|
|
return AjaxResult.success(meteorologicalEarlyWarning1.size() + |
|
|
|
meteorologicalEarlyWarning2.size() + |
|
|
|
meteorologicalEarlyWarning3.size() + |
|
|
|
meteorologicalEarlyWarning4.size() + |
|
|
|
meteorologicalEarlyWarning5.size() + |
|
|
|
meteorologicalEarlyWarning6.size() + |
|
|
|
meteorologicalEarlyWarning7.size() + |
|
|
|
meteorologicalEarlyWarning8.size() |
|
|
|
); |
|
|
|
return AjaxResult.success((meteorologicalEarlyWarning1 == null ? 0 : meteorologicalEarlyWarning1.size()) + |
|
|
|
(meteorologicalEarlyWarning2 == null ? 0 : meteorologicalEarlyWarning2.size()) + |
|
|
|
(meteorologicalEarlyWarning3 == null ? 0 : meteorologicalEarlyWarning3.size()) + |
|
|
|
(meteorologicalEarlyWarning4 == null ? 0 : meteorologicalEarlyWarning4.size()) + |
|
|
|
(meteorologicalEarlyWarning5 == null ? 0 : meteorologicalEarlyWarning5.size()) + |
|
|
|
(meteorologicalEarlyWarning6 == null ? 0 : meteorologicalEarlyWarning6.size()) + |
|
|
|
(meteorologicalEarlyWarning7 == null ? 0 : meteorologicalEarlyWarning7.size()) + |
|
|
|
(meteorologicalEarlyWarning8 == null ? 0 : meteorologicalEarlyWarning8.size())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|