|  |  |  | 
|---|
|  |  |  | @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()) ; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据指定条件查询历史记录 | 
|---|
|  |  |  | * @param weatherId | 
|---|
|  |  |  | * @param qo | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(path = "oneHistory") | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<QueryResultVo<List<VoWeather>>> oneHistory(Long weatherId){ | 
|---|
|  |  |  | public BaseResponse<QueryResultVo<List<VoWeather>>> oneHistory(WeatherQo qo){ | 
|---|
|  |  |  | try { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(sv.oneHistory(weatherId)); | 
|---|
|  |  |  | if(qo.weatherId == null){ | 
|---|
|  |  |  | return BaseResponseUtils.buildFail("气象站id不能为空") ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | qo.completionTime(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(sv.oneHistory(qo)); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | return BaseResponseUtils.buildException(e.getMessage()) ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<QueryResultVo<List<VoWeather>>> someLast(WeatherQo qo){ | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | qo.completionTime(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(sv.someLast(qo)); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | return BaseResponseUtils.buildException(e.getMessage()) ; | 
|---|
|  |  |  | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<QueryResultVo<List<VoWeather>>> someHistory(WeatherQo qo){ | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | qo.completionTime(); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(sv.someHistory(qo)); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | return BaseResponseUtils.buildException(e.getMessage()) ; | 
|---|