| | |
| | | @SsoAop() |
| | | public BaseResponse<VoWeather> oneLast(Long weatherId){ |
| | | try { |
| | | if(weatherId == null){ |
| | | return BaseResponseUtils.buildFail("气象站id不能为空") ; |
| | | } |
| | | return BaseResponseUtils.buildSuccess(sv.oneLast(weatherId)); |
| | | } catch (Exception e) { |
| | | return BaseResponseUtils.buildException(e.getMessage()) ; |
| | |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoWeather>>> oneHistory(Long weatherId){ |
| | | try { |
| | | |
| | | return BaseResponseUtils.buildSuccess(sv.oneHistory(weatherId)); |
| | | if(weatherId == null){ |
| | | return BaseResponseUtils.buildFail("气象站id不能为空") ; |
| | | } |
| | | return BaseResponseUtils.buildSuccess(sv.oneHistory(weatherId)); |
| | | } catch (Exception e) { |
| | | return BaseResponseUtils.buildException(e.getMessage()) ; |
| | | } |