| | |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据计划ID获取计划终止操作结果 |
| | | * @param planId |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "/getTerminateResults") |
| | | public BaseResponse<VoPlanDetails> getTerminateResults(@RequestParam Long planId) { |
| | | if(planId == null) { |
| | | return BaseResponseUtils.buildErrorMsg("计划ID不能为空"); |
| | | } |
| | | |
| | | try { |
| | | VoPlanDetails res = irrigatePlanSv.getTerminateResults(planId); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } catch (Exception e) { |
| | | log.error("获取计划发布结果异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | } |